Skip to content

Commit cda8f4f

Browse files
docs(website): fix wrong use of state and actions
1 parent 1433dc0 commit cda8f4f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/overmind-website/examples/api/components_events.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ const MyComponent: Component = () => {
2323
code: `
2424
import { h, useOvermind } from 'overmind-components'
2525
26-
const MyComponent = ({ state, actions }) => {
26+
const MyComponent = () => {
27+
const { state, actions } = useOvermind()
28+
2729
return (
2830
<input
2931
value={state.inputValue}

0 commit comments

Comments
 (0)