React Hooks render twice

It’s an intentional feature of the StrictMode. This only happens in
development, and helps find accidental side effects put into the
render phase. We only do this for components with Hooks because those
are more likely to accidentally have side effects in the wrong place.
gaearon commented on Mar 9, 2019

Leave a Comment