News for hackers. Stuff that matters.
Re:Solid.js feels like what I always wanted React to be by Izkata on Tuesday March 01, 2022 @10:25AM (#30515268)
> I don’t understand why people think react hooks are meant to be ‘functional’.

Because when function components first came along that's what the whole of React was supposed to be: "functional" UI, using things like redux or mobx for state. Plenty of guides still use that terminology even though React's homepage now uses "declarative".

That said I think they were always misusing the term, I remember this because I used to complain to people that react itself was declarative, not functional, and just gave the option of writing in a functional style.

Re:Solid.js feels like what I always wanted React to be by svachalek on Tuesday March 01, 2022 @12:43PM (#30517256)
I'm not sure what happened over there but they completely lost the plot with hooks. And now you're not "correct" or "modern" if you don't use them. They're ... fine, I guess. Most of the time. But not at all in line with the fairly clean and consistent vision of early React.