React概念理解
1 useEffect 文章推荐 https://segmentfault.com/a/1190000018639033https://juejin.cn/post/7044161793471545381 useEffect(() > {console.log(111111);return () > {console.log(222222);};});在每次代码刷新时候都会打印111111和222222 const [state, dispatch] …
2024-12-23