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 {name, age, $get, $set} = useControls({name: 'Andrew', age: 28})
|
||||||
|
|
||||||
const increaseAge = useCallback(() => {
|
const increaseAge = useCallback(() => {
|
||||||
$set((values) => values.age, $get(values.age + 1))
|
$set((values) => values.age, $get((values) => values.age) + 1)
|
||||||
}, [$get, $set])
|
}, [$get, $set])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in a new issue