3 ms·
Some related discussion from a few months back (specifically, a critique of hooks): https://news.ycombinator.com/item?id=22995928 https://news.ycombinator.com/i
by wincent 6y ago
Some related discussion from a few months back (specifically, a critique of hooks): https://news.ycombinator.com/item?id=22995928 https://news.ycombinator.com/item?id=22995928
FWIW, I think the single tweet that sums up the reason why hooks are the way they are is this: https://twitter.com/sebmarkbage/status/1094093984211787776 https://twitter.com/sebmarkbage/status/1094093984211787776
> A property of Hooks is that it forces you to confront them early and then you just learn patterns that don't have the same issues. I don't know if that is worth the tradeoff, but I stick to the claim that this is the tradeoff.
(That's Sebastian Markbåge, who's basically been chief architect of all things on the core React team for the last 5 years or so.)