Hooks Considered Harmful
Alright so, reading through all this I think I can summarize it:<p>- Hooks are tricky because you need to pass them an array of dependencies, which is manual housekeeping<p>- You shouldn't pass anything but primitives to a hook's dependency array if at all possible<p>What is the alternative? Just pay attention to the two above, or go back to class based components? Or will there be a React-flavored JS/TS (like JSX / TSX) that has different closure mechanics?