Skip to content

Commit 929b547

Browse files
authored
docs(create-store.md): fix incorrect usage of create function in example (#2940)
1 parent efaf416 commit 929b547

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/apis/create-store.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ import { createStore } from 'zustand/vanilla'
242242

243243
type PositionStore = [number, number]
244244

245-
const positionStore = create<PositionStore>()(() => [0, 0])
245+
const positionStore = createStore<PositionStore>()(() => [0, 0])
246246

247247
const $dotContainer = document.getElementById('dot-container') as HTMLDivElement
248248
const $dot = document.getElementById('dot') as HTMLDivElement

0 commit comments

Comments
 (0)