Nuxt XState module allows for easy integration of XState with Nuxt.js.
Run one of the following commands:
yarn add --dev nuxt-xstate
# or
npm install --save-dev nuxt-xstate
And add it to your nuxt.config.ts:
import { defineNuxtConfig } from 'nuxt/config'
export default defineNuxtConfig({
modules: ['nuxt-xstate']
})
👉 Check out the documentation
@xstate/inspect supportyarn installyarn dev:prepare to generate type stubs.yarn dev to start playground in development mode.