Skip to content

WesSouza/immer-state

Repository files navigation

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.skypack.dev/immer-state@%5E0.8.0';

Example

cd example
yarn install
yarn run start

Then open localhost:1234.

LICENSE

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

About

Immer.js + React Hooks = 💜

Resources

Stars

Watchers

Forks

Releases

Used by

Contributors

Languages