mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
docs(create-store.md): fix incorrect usage of create function in example (#2940)
This commit is contained in:
parent
efaf416de4
commit
929b547054
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user