Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
I'll play Wang. Most likely you have wrapped the component in StrictMode and are in the development environment. In this case, the components will be rendered twice when mounted to perform internal StrictMode checks.
https://github.com/facebook/react/issues/15074#iss...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question