XState tools for Svelte
npm install @xstate/svelteThis package contains utilities for using XState with Svelte.
- Read the full documentation in the XState docs.
- Read our contribution guidelines.
1. Install xstate and @xstate/svelte:
``bash`
npm i xstate @xstate/svelte
Via CDN
`html`
By using the global variable XStateSvelte
2. Import useMachine
`svelte
``