use-undoable-state
v1.0.3
Published
A small react hook for state wrapped in undo/redo functionality
Downloads
11
Maintainers
Readme
UseUndoableState
This is a simple hook for wrapping state in standard undo / redo behaviour.
Published on NPM Here
Installation
To install the package run either:
yarn add use-undoable-state
or
npm i use-undoable-state
Getting Started
Here is an example of how to use the hook:
const [ state, setState, undoState, redoState ] = useUndo()
After this it can be used like standard react state.