摘要: React StrictMode 触发时机: 开发模式, 并且调用 StrictMode 执行时机 严格模式的运行是不会有 console.log 的输出的。输出的 view,都是第二次运行后的结果。据实验,方法组件是第二次是严格模式的运行(因为第二次的 console.log 没有输出),类组件则 阅读全文
posted @ 2021-05-23 22:52 kongshu 阅读(273) 评论(0) 推荐(0) 编辑