4 ms·
For a bare object sure. Points 2 and 3 are solved with react-class-model. I don't understand how atoms compose nicely but classes wouldn't. Zustand looks a bit
by Rohansi 2y ago
For a bare object sure. Points 2 and 3 are solved with react-class-model. I don't understand how atoms compose nicely but classes wouldn't.
Zustand looks a bit better but it is still very different from normal JS. Nobody writes code like that normally. Why can't we have normal, boring code for state management?
- cageface 2y agoThis react-class-model? https://github.com/Facepunch/react-class-model https://github.com/Facepunch/react-class-model 7 stars on github? Class objects with decorators? No thanks.
- Rohansi 2y agoThat's the one. Obviously not popular since I made it for an app I work on. What's wrong with decorators? Technically not needed but I like things being explicit.