News for hackers. Stuff that matters.
Re:useStateMachine: A ½ kb state machine hook for React by jokethrowaway on Sunday May 23, 2021 @08:13AM (#27254479)
It's a good abstraction (definitely a massive improvement over the awkward classes) but it's built on so much react tech that you need limits which don't make sense (all the rules you need to remember) and when things break you're in for a world of pain.

You can definitely have "hooks" that are just normal js functions without limits.

My favourite public example of this is definitely solid.js (by ryansolid).

In general, I'm grateful to react / facebook for bringing in the spotlight the hyperscript way of doing applications and pushing tons of developers to develop similar libraries - but technically react is bloated and a ugly corporate mess.

Similar considerations for redux and elm.

There are no comments on this comment yet.