We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
useStateMachine works out-of-the box if you have preact/compat set up (as is the default in wmr and preact-cli).
preact/compat
wmr
preact-cli
Otherwise you need to alias "react" to "preact/hooks" - for example, in your package.json:
"moduleNameMapper": { "^react$": "preact-compat", "^react-dom$": "preact-compat", }