https://github.com/houfio/dakpan
🏠 A tiny React state management library using hooks.
https://github.com/houfio/dakpan
react typescript
Last synced: 5 months ago
JSON representation
🏠 A tiny React state management library using hooks.
- Host: GitHub
- URL: https://github.com/houfio/dakpan
- Owner: houfio
- License: mit
- Created: 2018-06-07T07:01:58.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2022-06-06T08:01:09.000Z (almost 3 years ago)
- Last Synced: 2024-11-13T01:48:55.058Z (5 months ago)
- Topics: react, typescript
- Language: TypeScript
- Homepage: https://dakpan.houf.io/
- Size: 1.12 MB
- Stars: 69
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-react-state-management - dakpan - A small React state management library using the new React context. (List)
- awesome-react-context - **dakpan** - A small React state management library using the new React context. (Libraries)
README

[](https://www.npmjs.com/package/dakpan)
[](https://www.npmjs.com/package/dakpan)
[](./LICENSE.md)
---A tiny React state management library using hooks.
```tsx
const [StateProvider, useDakpan, withDakpan] = createDakpan({
hello: 'world'
})({
append: (value: string) => ({ hello }) => ({
hello: hello + value
})
});
```## Installation
```
npm install dakpan
```
or
```
yarn add dakpan
```## Documentation
You can find the documentation [here](https://dakpan.houf.io/).