These steps assume You've forked the repo and created a branch for your PR. For more info, see the section Making changes in our CONTRIBUTING.md.
- In the CLI, navigate to the
/examples
folder. Start a new Vite project using the appropiate template (e.g.react-ts
) and adding the name of the framework at the end of your example's name:
pnpm create vite@latest my-example-react --template react-ts
cd my-example-react
- Install
xstate
and the library-specific beta (e.g.@xstate/react
):
pnpm install xstate @xstate/react
-
Add your XState-powered demo code ✨
-
Preview it:
pnpm run dev
- Submit a PR!