https://github.com/rannn505/jstate
Very friendly Flux implementation
https://github.com/rannn505/jstate
alt flux frontend redux state-management
Last synced: 5 days ago
JSON representation
Very friendly Flux implementation
- Host: GitHub
- URL: https://github.com/rannn505/jstate
- Owner: rannn505
- License: mit
- Created: 2017-04-28T15:11:42.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-11T12:19:59.000Z (over 8 years ago)
- Last Synced: 2026-05-16T09:39:05.119Z (about 1 month ago)
- Topics: alt, flux, frontend, redux, state-management
- Language: HTML
- Homepage: https://rannn505.github.io/jstate/
- Size: 885 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
jState
===
> jState is a very friendly Flux implementation. Nowadays there are many libraries that do this implementation and do it with a great success, each characterized by certain characteristics, emphasis certain parameters and has a strong link to other libraries. jState primarily emphasizes complexity, this means that it has a very short and focused API, it is super easy to integrate with all the newest FE libraries and it takes almost no time to get started with.
## Installation
```bash
$ npm i -S jstate
$ yarn add jstate
```
## Quick start
```javascript
// open console (F12)
const logger = next => action => {
next(action);
// $._ is shorthand to jstate.state
console.log($._);
}
$.register(logger);
// all of jState API is accessible via $ or jstate prefixes
jstate.setState({a:1});
$.setState({a:2, b:3});
```
## API Reference
**:memo: [API reference](http://cdn.rawgit.com/rannn505/jstate/master/docs/docs.html)**
I've created a convenient and readable page, so you can enjoy the experience of learning and begin to use the library quickly and easily.
## Examples
- [jQuery](https://jsfiddle.net/rannn505/9w309dcn/)
- [Angular1](https://jsfiddle.net/rannn505/3ytpo4w9/)
- [React](https://jsfiddle.net/rannn505/4n16zxpp/)
## License
[MIT](LICENSE) © [Ran Cohen](https://github.com/rannn505)