News for hackers. Stuff that matters.
Re:Ask HN: What Lived Up to the Hype? by junon on Thursday December 24, 2020 @04:57PM (#25531821)
React hooks are terribly implemented. They cause deadlock in the simplest of cases.

Check out Adam Haile's S.js and Surplus if you want a better example of this approach (which came LONG before "hooks"). Surplus also tops performance charts consistently, and has done so for years. Really underrated framework that is lightweight and battle tested.

Re:Ask HN: What Lived Up to the Hype? by Merad on Thursday December 24, 2020 @07:35PM (#25533043)
I've seen people cause all kinds of problems with hooks, but I don't believe I've ever seen deadlock. Can you elaborate?
Re:Ask HN: What Lived Up to the Hype? by walto2 on Thursday December 24, 2020 @05:24PM (#25532057)
Can you elaborate on the deadlock risk, or link to further reading?
Re:Ask HN: What Lived Up to the Hype? by cercatrova on Thursday December 24, 2020 @05:16PM (#25531988)
Haile's work seems mostly to be stream-based like RXJS, is that right? They seem to be reactive components. Can you show me how I can compose pieces of life cycles together using Haile's libraries like I can with hooks?