use-set-state
Manages state with setState-like API
Import
Source
Docs
Package
Usage
use-set-state
works similar to how this.setState
works in class components – it shallow merges state partial
into current state.
Note that it can work only with objects: primitive values and arrays are not supported: