📜  strictmode 导致双重渲染 - Html 代码示例

📅  最后修改于: 2022-03-11 14:53:22.195000             🧑  作者: Mango

代码示例1
Your App component is rendered within React.StrictMode 
which is what causes your code to run in strict mode and 
in strict mode the consoles are shown twice because each function 
is made to run twice in development mode