Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.




I've seen people cause all kinds of problems with hooks, but I don't believe I've ever seen deadlock. Can you elaborate?


Can you elaborate on the deadlock risk, or link to further reading?


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?




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: