From df38aa8c5a4bfe39d14433bb15fd89264a86597e Mon Sep 17 00:00:00 2001 From: zc627788 <1455208792@qq.com> Date: Mon, 17 Apr 2023 10:01:56 +0800 Subject: [PATCH] Fix document details (#1752) export const useBoundStore = create((set) => ({ count: 0, text: 'hello', inc: () => set((state) => ({ count: state.count + 1 })), setText: (text) => set({ text }), }) example on this page is missing a trailing parenthesis --- docs/guides/practice-with-no-store-actions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/practice-with-no-store-actions.md b/docs/guides/practice-with-no-store-actions.md index 5f5b9ba0..fe9061c4 100644 --- a/docs/guides/practice-with-no-store-actions.md +++ b/docs/guides/practice-with-no-store-actions.md @@ -13,7 +13,7 @@ export const useBoundStore = create((set) => ({ text: 'hello', inc: () => set((state) => ({ count: state.count + 1 })), setText: (text) => set({ text }), -}) +})) ``` This creates a self-contained store with data and actions together.