A stopwatch created using xState.
Using a state-machine allows you to more clearly describe the behaviour of a machine. This is a minimal example to see how xstate
works in a react
, typescript
, next.js
project.
visit the live demo 🚀
yarn # install packages
yarn start:dev
Open http://localhost:3000 with your browser to see the result.