diff --git a/docs/getting-started/comparison.md b/docs/getting-started/comparison.md index adcae064f7..cd7bae668f 100644 --- a/docs/getting-started/comparison.md +++ b/docs/getting-started/comparison.md @@ -242,7 +242,7 @@ type State = { const store = create(() => ({ obj: { count: 0 } })) -store.setState((prev) => ({ obj: { count: prev.obj.count + 1 } }) +store.setState((prev) => ({ obj: { count: prev.obj.count + 1 } })) ``` **Valtio**