Skip to content

Commit 2274eb9

Browse files
authored
Invalid example (#1539)
Add missing close parenthesis on Zustand example
1 parent 3c03e40 commit 2274eb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/getting-started/comparison.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ type State = {
242242

243243
const store = create<State>(() => ({ obj: { count: 0 } }))
244244

245-
store.setState((prev) => ({ obj: { count: prev.obj.count + 1 } })
245+
store.setState((prev) => ({ obj: { count: prev.obj.count + 1 } }))
246246
```
247247

248248
**Valtio**

0 commit comments

Comments
 (0)