This example shows how to integrate XState in Next.js. For more info about XState you can visit [here](https://xstate.js.org/).
## Deploy your own
Deploy the example using [ZEIT Now](https://zeit.co/now):
[](https://zeit.co/new/project?template=https://github.com/zeit/next.js/tree/canary/examples/with-xstate)
## How to use
### Using `create-next-app`
Execute [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example: