From 97ab020bfba6e110da5ad68c00745b644c11156a Mon Sep 17 00:00:00 2001 From: Andrew Prifer Date: Tue, 24 Jan 2023 16:50:03 +0100 Subject: [PATCH] Fix typo in Theatric's readme --- packages/theatric/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/theatric/README.md b/packages/theatric/README.md index 9f9d448..82210d3 100644 --- a/packages/theatric/README.md +++ b/packages/theatric/README.md @@ -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 (