1.0.0 • Published 5 years ago

hooked-state v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Hooked State

A lightweight lib that provides React state management using simply hooks!

Motivation

If you are already familiar with React Hooks, you may have already tried to replace Redux for state management with just useReducer and useContext. In fact, it's possible. See State Management with React Hooks and Context API in 10 lines of code!. You can perfectly code your own state management setup using hooks from scratch. However, it's always a good idea to reduce as much boilerplate as you can. Therefore, the motivation for building this lib is to have a set of functions that one does not need to worry about repetitive logic and verbose setup.

Installation

npm i hooked-state

Usage

MIT Licensed