https://github.com/developerdizzle/stata
https://github.com/developerdizzle/stata
actions dispatch management state store
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/developerdizzle/stata
- Owner: developerdizzle
- Created: 2018-04-13T02:05:54.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-20T13:35:29.000Z (almost 8 years ago)
- Last Synced: 2025-08-18T04:58:18.705Z (6 months ago)
- Topics: actions, dispatch, management, state, store
- Language: JavaScript
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Stata [](https://travis-ci.org/developerdizzle/stata) [](https://bundlephobia.com/result?p=stata)
Super simple state management
https://www.npmjs.com/package/stata
## What this does
- 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
## What this doesn't do
Strong emphasis on YAGNI
- Allow multiple subscribers
- Allow unsubscribe
- Dynamically add actions
- Expose `dispatch`
- Serializable actions or action history
## How to use
Check out this [codepen](https://codepen.io/dizzle/pen/BrgJqj) that uses [preact](https://github.com/developit/preact) as the rendering engine.