diff --git a/docs/apis/create-store.md b/docs/apis/create-store.md index 9c0376b358..7b26eedff0 100644 --- a/docs/apis/create-store.md +++ b/docs/apis/create-store.md @@ -242,7 +242,7 @@ import { createStore } from 'zustand/vanilla' type PositionStore = [number, number] -const positionStore = create()(() => [0, 0]) +const positionStore = createStore()(() => [0, 0]) const $dotContainer = document.getElementById('dot-container') as HTMLDivElement const $dot = document.getElementById('dot') as HTMLDivElement