0.0.4 • Published 8 months ago
use-state-with-history v0.0.4
use-state-with-history
How to use
import { useStateWithHistory } from "use-state-with-history";
function Component() {
const [value, setValue, { history, forward, backward, go }] =
useStateWithHistory<number>(0);
}