Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/houfio/dakpan
🏠 A tiny React state management library using hooks.
https://github.com/houfio/dakpan
react typescript
Last synced: about 2 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 (over 6 years ago)
- Default Branch: main
- Last Pushed: 2022-06-06T08:01:09.000Z (over 2 years ago)
- Last Synced: 2024-11-13T01:48:55.058Z (about 2 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
![Logo](https://raw.githubusercontent.com/houfio/dakpan/master/logo.svg?sanitize=true)
[![npm](https://badgen.net/npm/v/dakpan)](https://www.npmjs.com/package/dakpan)
[![minzipped size](https://badgen.net/bundlephobia/minzip/dakpan)](https://www.npmjs.com/package/dakpan)
[![license](https://badgen.net/npm/license/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/).