Fork me on github
摘要: 阅读全文
posted @ 2023-10-01 17:28 zjy4fun 阅读(22) 评论(0) 推荐(0) 编辑
摘要: https://github.com/zjy4fun/notes/issues/62 React 18 提出的新特性“并发渲染”,为了防止组件重复挂载的问题,React 在开发模式 && 严格模式下,useEffect 会执行两次(模拟组件挂载和组件卸载,让问题提早暴露),但是线上模式不会。 开发模 阅读全文
posted @ 2023-10-01 16:46 zjy4fun 阅读(329) 评论(0) 推荐(0) 编辑