Skip to content

soundsnick/swear-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🍭 Swear JS

Simple state manager

Features


  • 🍥 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

Frameworks

Demo

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published