Simple state manager
- 🍥 Simple abstraction. No need to get into FLUX, life cycle, the flow. You just have a state, and have functions(actions) that somehow mutates that state. Just like React's
useState
. No way simpler. - 🍩 Deep type inferences. No need to guess what type you're working with(hey, Redux)!
- 🍡 Code splitting. Your swears can lay wherever you want. Even in the scope of another microapplication.
- 🧊 Framework-agnostic. If your framework has no support, or you just simply don't use one,
core
package is for you. - 🪡 Small size. 584B
- 🐞 Logging. Store has default support for logging. And SwearJS has it's our own beautiful logger
Demo applications are runnable via npx:
- [Framework agnostic]
$ npx swear-demo-agnostic
- [React]
$ npx swear-demo-react
Don't forget to remove created project directory after
Inspired by @artalar's Reatom.