React Hooks模拟组件生命周期

Hooks模拟constructor Hooks模拟constructor constructor(){ super() this.state={count:0} } const [count setCount]=useState(0) Hooks模拟componentDidMount useEff
posted @ 2023-02-20 09:26  Leise  阅读(282)  评论(0编辑  收藏  举报