3 ms·
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 thi
by junon 6y ago
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.
- cercatrova 6y agoHaile'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?
- walto2 6y agoCan you elaborate on the deadlock risk, or link to further reading?
- Merad 6y agoI've seen people cause all kinds of problems with hooks, but I don't believe I've ever seen deadlock. Can you elaborate?