摘要: React Hook 1. 什么是 React Hook 官方回答:Hook 是 React 16.8 的新增特性。它可以让你在不编写 class 的情况下使用 state 以及其他的 React 特性。 从官网的这句话中,我们可以明确的知道,Hook增加了函数式组件中state的使用,我们可以轻松 阅读全文
posted @ 2020-12-17 11:41 陆远 阅读(104) 评论(0) 推荐(0) 编辑