1.1.3 • Published 11 months ago

@xstate-ninja/react v1.1.3

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

Quick Start

npm install --save @xstate-ninja/react xstate-ninja @xstate/react xstate

To track state machines in your project, do this:

import { useInterpret } from '@xstate-ninja/react'

function App() {
  const service = useInterpret(machine, { devTools: true })
}

The useMachine hook is available too:

import { useMachine } from '@xstate-ninja/react'

function App() {
  const [state, send, service] = useMachine(machine, { devTools: true })
}

Install the browser extension, open browser devtools (F12) and select the XState panel.

1.1.3

11 months ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago