Skip to content

Commit

Permalink
Invalid example (#1539)
Browse files Browse the repository at this point in the history
Add missing close parenthesis on Zustand example
  • Loading branch information
basic-steve authored Jan 12, 2023
1 parent 3c03e40 commit 2274eb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/getting-started/comparison.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ type State = {

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

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

**Valtio**
Expand Down

0 comments on commit 2274eb9

Please sign in to comment.