xstate-demo

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

machine visualisation

Building and running on localhost

First install dependencies:

npm install

To run in hot module reloading mode:

npm start

To create a production build:

npm run build-prod

Running

node dist/bundle.js

Credits

Made with createapp.dev