Skip to content

Commit

Permalink
docs: fix typo in Immer (#2802)
Browse files Browse the repository at this point in the history
Corrected from `useAtom` to `atom`.
  • Loading branch information
ryoku4 authored Nov 10, 2024
1 parent 5802fc0 commit 1bf99e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/extensions/immer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Check this example with withImmer:
This hook takes an atom and replaces the atom's `writeFunction` with the new immer-like `writeFunction` like the previous helpers.

```jsx
import { useAtom } from 'jotai'
import { atom } from 'jotai'
import { useImmerAtom } from 'jotai-immer'

const primitiveAtom = atom({ value: 0 })
Expand Down

0 comments on commit 1bf99e1

Please sign in to comment.