An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

jState
===

Build Status
NPM Version
NPM Downloads
Coveralls
Package Quality
Closed Issues
Dependencies
License
 GitHub Stars

> 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)