News for hackers. Stuff that matters.
Re:useStateMachine: A ½ kb state machine hook for React by k__ on Saturday May 22, 2021 @08:11AM (#27245745)
They fit so well into React it's crazy.

But they're also soooo idiosyncratic which makes them rather ugly on a general level.

Re:useStateMachine: A ½ kb state machine hook for React by codeflo on Saturday May 22, 2021 @08:23AM (#27245828)
They also come with many restrictions and rules on correct and efficient usage, not all of them checked by ESLint, that make the learning curve a bit brutal.

But yes, insanely useful once you get the hang of them, they enable forms of abstraction and composability that you'll sorely miss when working in other UI frameworks.

Re:useStateMachine: A ½ kb state machine hook for React by radicalbyte on Saturday May 22, 2021 @09:16AM (#27246203)
Aren't there proper TypeScript bindings which catch (more) cases?