Skip to content

Commit

Permalink
Merge branch 'main' into chore/cjs-to-esm-rollup
Browse files Browse the repository at this point in the history
  • Loading branch information
sukvvon authored Jan 6, 2025
2 parents 8ecb78a + efaf416 commit 1ebc130
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/apis/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -449,8 +449,8 @@ const usePersonStore = create<PersonStore>()((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<HTMLInputElement>) {
person.firstName = e.target.value
Expand Down

0 comments on commit 1ebc130

Please sign in to comment.