What’s the difference between using `useEffect` with an empty dependency array and a conditional?
Based on the article outlined in the React docs: You Might Not Need An Effect, they explain that logic which should only be executed once should be wrapped in an init clause.