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 (#2727)
  • Loading branch information
sakurawen authored Sep 8, 2024
1 parent 34794c0 commit 74b3803
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 74b3803

Please sign in to comment.