Fix typo in Theatric's readme
This commit is contained in:
parent
a0eeab7b69
commit
97ab020bfb
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ function Introduction() {
|
|||
const {name, age, $get, $set} = useControls({name: 'Andrew', age: 28})
|
||||
|
||||
const increaseAge = useCallback(() => {
|
||||
$set((values) => values.age, $get(values.age + 1))
|
||||
$set((values) => values.age, $get((values) => values.age) + 1)
|
||||
}, [$get, $set])
|
||||
|
||||
return (
|
||||
|
|
Loading…
Reference in a new issue