1.1.6 • Published 8 years ago
easy-state v1.1.6
Easy-state
Simple state manipulation without any frameworks.
Visit the docs page
Developing easy-state
Install
$ git clone https://github.com/oyvindhermansen/easy-state.git
$ cd easy-state
$ yarn installRun the demo whitch is powered by webpack and webpack dev-server.
The dev-server listens for changes in both demo/ and src/, so you can write module implementation and testing it in the browser at the same time.
$ yarn devUnit testing
$ yarn test
$ yarn test:watchTest coverage
$ yarn coveragePrettier
# Targets src, demo and __tests__ folders.
$ yarn prettierBuild for production
$ yarn buildRun the website locally with Gatsby
$ cd docs && yarn developInspiration
The library is inspired by both React and Redux. It's sort of a Redux-lib, without the reducers, action-creators and dispatching actions, but instead changing state with setState()-method like they do in React.