https://dev.to/usama_dev/react-hooks-and-the-rules-of-hooks-the-understanding-that-finally-clicked-for-me-hm4 - #React #Hooks are an ordered list of references into their internals. So defining them conditionally breaks the order. Or defining them outside React functions means they never tie to React internals. Brilliant observation https://github.com/Usamaazeem03.