diff --git a/README.md b/README.md index e4900ed..0b56ae9 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ The middleware layer takes in your store creation function and a compute functio ```js import { createComputed } from "zustand-computed" -const computeState = createComputed(state) => ({ +const computeState = createComputed((state) => ({ countSq: state.count ** 2, })) @@ -114,8 +114,8 @@ const useStore = create()( state.count += 1 }), dec: () => set((state) => ({ count: state.count - 1 })), - }), - ), + }) + ) ) ) ) @@ -133,7 +133,7 @@ const useStore = create set((state) => ({ count: state.count + 1 })), dec: () => set((state) => ({ count: state.count - 1 })), - }), + }) ) ) ```