Oct 2, 2024
Thanks for your thoughts. Regarding the useEffect. This is actually from the official react documentation. Quote: "However, whenever you write an Effect, consider whether it would be clearer to also wrap it in a custom Hook. "
https://react.dev/learn/reusing-logic-with-custom-hooks#when-to-use-custom-hooks