Super simple state management
https://www.npmjs.com/package/stata
- Creates a store of state based on an initial state
- Automatically binds action creators into action methods, which are returned as an object
- Automatically dispatches and calls render function (with current state and actions) when action methods are called
Strong emphasis on YAGNI
- Allow multiple subscribers
- Allow unsubscribe
- Dynamically add actions
- Expose
dispatch
- Serializable actions or action history
Check out this codepen that uses preact as the rendering engine.