Just a simply (pure TypeScript and HTML) of the x-state machine usage.
Fell free to use X-state visualiser to display machine
definition from index.tsx file, to see it in action
P.S. This repo is the second part of the state management story (Frontend sync). First part available here: https://github.com/Bigismall/frontend-sync-state-reducers
First install dependencies:
npm install
To run in hot module reloading mode:
npm start
To create a production build:
npm run build-prod
node dist/bundle.js
Made with createapp.dev