Skip to content

jinglesthula/xstate-react-examples

Repository files navigation

xstate-react-examples

Simple introductory examples integrating Xstate and React

yarn add xstate @xstate/react

yarn add --dev prettier prettier-eslint eslint-config-airbnb eslint-config-prettier eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks

Example Apps

  • Toggle: states, transitions, actions, useMachine hook
  • Counter: context
  • Todos: context API use
  • TicTacToe: guards
  • Heroine: hierarchical and parallel states

Topics that need MVP example apps:

  • hierarchical and parallel states
  • child state machines
  • effects
  • activities
  • services (is this child state machines?) and actors
  • history
  • other stuff?

About

Simple introductory examples integrating Xstate and React

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published