Skip to content

Commit

Permalink
docs(create-store.md): fix incorrect usage of create function in ex…
Browse files Browse the repository at this point in the history
…ample (#2940)
  • Loading branch information
HoberMin authored Jan 7, 2025
1 parent efaf416 commit 929b547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/apis/create-store.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ import { createStore } from 'zustand/vanilla'

type PositionStore = [number, number]

const positionStore = create<PositionStore>()(() => [0, 0])
const positionStore = createStore<PositionStore>()(() => [0, 0])

const $dotContainer = document.getElementById('dot-container') as HTMLDivElement
const $dot = document.getElementById('dot') as HTMLDivElement
Expand Down

0 comments on commit 929b547

Please sign in to comment.