0.1.4 • Published 1 year ago

use-time-machine v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

⏲️ useTimeMachine

A simple React.js hook to go forward and backwards with your state.

Install now

  yarn add use-time-machine

or

  npm i use-time-machine

Samples

 import { useTimeMachine } from "use-time-machine"

  function App(){
    const {history, sendTo, hasPast, hasFuture} = useTimeMachine([...]);

    return <div>...</div>
  }
import { useHistoryMachine } from 'use-time-machine';

function App() {
	const { state, setCurrentState, goFoward, goBackward, resetState } =
		useHistoryMachine('test');

	return <div>...</div>;
}

by @GabrielModog - say hi!

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago