useEffect( () => { /** * Your effect code * * Note that this may or may not make * sense to you in 6 months time. */ }, [] ); What for? This should provide 3 key benefits: More clarity in the purpose of the effect, so other programmers would could easily tell what it's supposed to do just by reading the name; If the effect throws an error, the function's name will show up in the stack trace, which