immer-state

This is a proof of concept of a state manager class that combines [React Hooks](https://reactjs.org/docs/hooks-reference.html), [immer](https://github.com/immerjs/immer) and an adapted [publish-subscribe pattern](https://en.wikipedia.org/wiki/Publish–subs

Usage no npm install needed!

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

README

immer-state

This is a proof of concept of a state manager class that combines React Hooks, immer and an adapted publish-subscribe pattern.

See the example files for an idea of how this works.

This is a work in progress.

Installation

yarn add immer-state
import { StateManager, useSelector } from 'https://cdn.pika.dev/immer-state@^0.3.0';

Development

yarn install
yarn run start

Example

cd example
yarn install
yarn run start

Then open localhost:1234.

LICENSE

MIT, https://wes.dev/LICENSE.txt