diff --git a/docs/apis/create.md b/docs/apis/create.md index a426df2382..e634b1eb29 100644 --- a/docs/apis/create.md +++ b/docs/apis/create.md @@ -449,8 +449,8 @@ const usePersonStore = create()((set) => ({ })) export default function Form() { - const person = usePersonStore((state) => person) - const setPerson = usePersonStore((state) => setPerson) + const person = usePersonStore((state) => state) + const setPerson = usePersonStore((state) => state.setPerson) function handleFirstNameChange(e: ChangeEvent) { person.firstName = e.target.value