docs(create-store.md): fix incorrect usage of create function in example (#2940)

This commit is contained in:
HoberMin 2025-01-07 09:14:08 +09:00 committed by GitHub
parent efaf416de4
commit 929b547054
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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