From 4761c1bff8dfdb510ee75568adaba57160ff3051 Mon Sep 17 00:00:00 2001 From: wen Date: Sun, 8 Sep 2024 11:55:48 +0800 Subject: [PATCH] docs: fix variable reference error in functional-programming-and-jotai.mdx --- docs/basics/functional-programming-and-jotai.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/basics/functional-programming-and-jotai.mdx b/docs/basics/functional-programming-and-jotai.mdx index f1e08485ef..24aa4cb4c3 100644 --- a/docs/basics/functional-programming-and-jotai.mdx +++ b/docs/basics/functional-programming-and-jotai.mdx @@ -16,7 +16,7 @@ const greetingAtom = atom((get) => { const count = get(countAtom) return (
- Hello, {nameAtom}! You have visited this page {countAtom} times. + Hello, {name}! You have visited this page {count} times.
) }) @@ -32,7 +32,7 @@ const greetingPromise = (async function () { const count = await countPromise return (
- Hello, {nameAtom}! You have visited this page {countAtom} times. + Hello, {name}! You have visited this page {count} times.
) })()