4 ms·
When I go to Jotai npm docs page (https://www.npmjs.com/package/jotai https://www.npmjs.com/package/jotai) I don't really get the impression of how this helps g
by babyshake 2y ago
When I go to Jotai npm docs page (https://www.npmjs.com/package/jotai https://www.npmjs.com/package/jotai) I don't really get the impression of how this helps get away from using a lot of different context providers or Redux. The nice thing about context hooks is they are composable, combined with cached queries you can have a decently maintainable pattern. How does Jotai provide a tangible improvement on this?
- pixelsort 2y agoThe benefits would depends on how your code is structured, which dependencies you use, and overall complexity. Contexts provide and elegant developer experience, up until they don't. Have you ever implemented nested SplitView components under Dockview? It can be brutal on contexts. As a developer, I value solutions that never fail me. I wasn't driven to Jotai out of good taste. Simplicity and reliability are the benefits I find the most tangible. But Jotai's atomicity brings renderer optimizations as code splitting advantages that I haven't seen from the flux/redux clones before either.
- kn8 2y agohttps://github.com/KidkArolis/kinfolk https://github.com/KidkArolis/kinfolk - recoil/jotai, but simpler