Hooks Considered Harmful
Alright so, reading through all this I think I can summarize it:- Hooks are tricky because you need to pass them an array of dependencies, which is manual housekeeping- You shouldn't pass anything but primitives to a hook's dependency array if at all possibleWhat 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?