摘要: 使用 <Fragment></Fragment> <></> 作用 可以不用必须有一个真实的 DOM 根标签 区别 Fragment 可以拥有一个 key 值 阅读全文
posted @ 2021-08-18 22:41 懒惰ing 阅读(90) 评论(0) 推荐(0)
摘要: React Hook/Hooks 是什么? Hook 是 React 16.8.0 版本增加的新特性、新语法 可以让你在函数组件中使用 state 以及其他的 React 特性 三个常用的 Hook State Hook: React.useState() State Hook 让函数组件也可以有 阅读全文
posted @ 2021-08-18 22:37 懒惰ing 阅读(77) 评论(0) 推荐(0)