Be careful when working with maps with React Strict mode -- if you render into a div element, you might get an error about maps already being rendered.
NOTE - strictly speaking, React calls the useEffects twice ("re-rendering" is probably incorrect technically) -- without unmounting the component!
See
https://reactjs.org/docs/strict-mode....
https://reactjs.org/docs/strict-mode....
https://stackoverflow.com/questions/4...
https://stackoverflow.com/questions/7...