Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wessouza/immer-state
Immer.js + React Hooks = ๐
https://github.com/wessouza/immer-state
Last synced: 3 days ago
JSON representation
Immer.js + React Hooks = ๐
- Host: GitHub
- URL: https://github.com/wessouza/immer-state
- Owner: WesSouza
- License: mit
- Created: 2020-04-02T13:43:09.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-04-04T01:17:44.000Z (9 months ago)
- Last Synced: 2024-11-10T04:17:20.176Z (2 months ago)
- Language: TypeScript
- Homepage:
- Size: 602 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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โsubscribe_pattern).See the [example files](./example/) for an idea of how this works.
This is a work in progress.
## Installation
```sh
yarn add immer-state
``````js
import { StateManager, useSelector } from 'https://cdn.skypack.dev/immer-state@%5E0.8.0';
```## Example
```sh
cd example
yarn install
yarn run start
```Then open [localhost:1234](http://localhost:1234/).
## LICENSE
MIT, https://wes.dev/LICENSE.txt