Fix typo in Theatric's readme

This commit is contained in:
Andrew Prifer 2023-01-24 16:50:03 +01:00
parent a0eeab7b69
commit 97ab020bfb

View file

@ -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 (