接下来通过一个demo 尝试一下Hook 这个新特性。 先创建一个function 组件——计时器Timer,只显示一段文本。 import React from 'react' import ...
確定! 回上一頁