This repository bundles a comparison between the Xstate and Redux libraries, and with React Hooks.
npm install
Change the import of the component you want to use in the app file.
import LightSwitch from './components/lightSwitchXState/example2'
import './styles.css'
const App = () => {
return <LightSwitch />
}