📅  最后修改于: 2022-03-11 14:53:22.195000             🧑  作者: Mango
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