Skip to content

Commit

Permalink
docs: fix variable reference error in functional-programming-and-jota…
Browse files Browse the repository at this point in the history
…i.mdx
  • Loading branch information
sakurawen committed Sep 8, 2024
1 parent 34794c0 commit 4761c1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/basics/functional-programming-and-jotai.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const greetingAtom = atom((get) => {
const count = get(countAtom)
return (
<div>
Hello, {nameAtom}! You have visited this page {countAtom} times.
Hello, {name}! You have visited this page {count} times.
</div>
)
})
Expand All @@ -32,7 +32,7 @@ const greetingPromise = (async function () {
const count = await countPromise
return (
<div>
Hello, {nameAtom}! You have visited this page {countAtom} times.
Hello, {name}! You have visited this page {count} times.
</div>
)
})()
Expand Down

0 comments on commit 4761c1b

Please sign in to comment.