use-set-state
Manages state with setState-like API
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:
Definition
Exported types
UseSetStateCallback and UseSetStateReturnValue types are exported from @mantine/hooks package,
you can import them in your application: