摘要: 1、useState:让函数式组件拥有状态 用法示例: // 计数器 import { useState } from 'react' const Test = () => { const [count, setCount] = useState(0); return ( <> <h1>点击了{co 阅读全文
posted @ 2021-04-28 00:11 是明啊 阅读(14059) 评论(1) 推荐(2) 编辑