1.0.3 • Published 3 years ago

use-undoable-state v1.0.3

Weekly downloads
-
License
GPL-3.0
Repository
gitlab
Last release
3 years ago

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.

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

1.0.3

3 years ago

0.0.16

3 years ago

0.0.17

3 years ago

0.0.15

3 years ago

0.0.14

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.4

3 years ago