React renders twice your component and hooks or useEffect
From : https://stackoverflow.com/questions/58603209/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

Recent Comments