News for hackers. Stuff that matters.
Re:useStateMachine: A ½ kb state machine hook for React by joshribakoff on Saturday May 22, 2021 @06:25PM (#27250814)
You can use OOP or whatever you want to build your abstraction and then surface that as a hook, rather than using hooks as a way to do all your logic. This is similar to how there are npm packages that just import some other js package “foo”, wrap its api in a react component, and reexport it as react-foo

I’m curious what you think of https://rxstore.dev/ it basically is a pattern I tried to outline where you write logic with rxjs and it tries to bridge the gap to react/hooks for you. I address some of your points in the faq.

There are no comments on this comment yet.