Skip to content

Commit 301a42f

Browse files
committed
fix typo in useActions docs
1 parent 6ab6298 commit 301a42f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api/hooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export const CounterComponent = ({ value }) => {
185185
<div>
186186
<span>{value}</span>
187187
<button onClick={increase}>Increase counter</button>
188-
<button onClick={() => increase(5)}>Increase counter by 5</button>
188+
<button onClick={() => increaseBy(5)}>Increase counter by 5</button>
189189
<button onClick={decrease}>Decrease counter</button>
190190
</div>
191191
)

0 commit comments

Comments
 (0)