Skip to content

Commit

Permalink
docs: fix typos in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvander authored Aug 23, 2024
1 parent 3d89786 commit 0b91202
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}))

Expand Down Expand Up @@ -114,8 +114,8 @@ const useStore = create<Store>()(
state.count += 1
}),
dec: () => set((state) => ({ count: state.count - 1 })),
}),
),
})
)
)
)
)
Expand All @@ -133,7 +133,7 @@ const useStore = create<Store, [["chrisvander/zustand-computed", ComputedStore]]
count: 1,
inc: () => set((state) => ({ count: state.count + 1 })),
dec: () => set((state) => ({ count: state.count - 1 })),
}),
})
)
)
```
Expand Down

0 comments on commit 0b91202

Please sign in to comment.