Skip to content

Latest commit

 

History

History
 
 

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Contributing an example

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.

  1. 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
  1. Install xstate and the library-specific beta (e.g. @xstate/react):
pnpm install xstate @xstate/react
  1. Add your XState-powered demo code ✨

  2. Preview it:

pnpm run dev
  1. Submit a PR!