Hacker News new | ask | show | jobs
by talkingtab 2468 days ago
I've started to think in hooks which is good. Not that it is always clear, but seen as a way to connect function and presentation, hooks work well. At times I question the directionality of hooks - do they hook function to presentation, presentation to function or both? The useEffect hook appears to be a case of presentation => function whereas many others are the opposite, and that can make it more problematic, as others have pointed out.

I'm not sure this a valid understanding, but it works for me as a heuristic.