A ReactJS hook to manage state machine
You can use the project in this way:
# with npm
npm install state-machine-lib
- Import the package in your app:
import { useStateMachine } from "state-machine-lib";
- Get the state machine and transition from the hook:
const { transition, machineState } = useStateMachine(initialState, stateMachineConfiguration);
Github repo: state-machine-implementation
Implementation: Web page example