Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
David Maskasky committed Aug 19, 2024
1 parent a17f893 commit 2574638
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { atom, useAtomValue, useSetAtom } from 'jotai'
import { atomWithHistory } from 'jotai/utils'
const countAtom = atom(0)
const countWithPrevious = atomWithHistory(myAtom, 2)
const countWithPrevious = atomWithHistory(countAtom, 2)
export function CountComponent() {
const [count, previousCount] = useAtomValue(countWithPrevious)
Expand Down

0 comments on commit 2574638

Please sign in to comment.