easy-state

Simple state manipulation without any frameworks.

Usage no npm install needed!

<script type="module">
  import easyState from 'https://cdn.skypack.dev/easy-state';
</script>

README

Easy-state

Simple state manipulation without any frameworks.

Build Status codecov

Visit the docs page


Developing easy-state

Install

$ git clone https://github.com/oyvindhermansen/easy-state.git
$ cd easy-state
$ yarn install

Run 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 dev

Unit testing

$ yarn test
$ yarn test:watch

Test coverage

$ yarn coverage

Prettier

# Targets src, demo and __tests__ folders.
$ yarn prettier

Build for production

$ yarn build

Run the website locally with Gatsby

$ cd docs && yarn develop

Inspiration

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.