mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
Invalid example (#1539)
Add missing close parenthesis on Zustand example
This commit is contained in:
parent
3c03e40f93
commit
2274eb90b2
@ -242,7 +242,7 @@ type State = {
|
|||||||
|
|
||||||
const store = create<State>(() => ({ obj: { count: 0 } }))
|
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**
|
**Valtio**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user