摘要: 1、useState:让函数式组件拥有状态 用法示例: // 计数器 import { useState } from 'react' const Test = () => { const [count, setCount] = useState(0); return ( <> <h1>点击了{co 阅读全文
posted @ 2022-11-25 14:28 小呀小恐龙 阅读(31) 评论(0) 推荐(0)