From b1bfc1ed24ea95dc480ca56753e907027e30a981 Mon Sep 17 00:00:00 2001 From: Jusung Hwang Date: Tue, 25 Jan 2022 13:13:49 +0900 Subject: [PATCH] docs(guides): fix typo --- docs/guides/composing-atoms.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/composing-atoms.mdx b/docs/guides/composing-atoms.mdx index cb4847946d..e8de9f1599 100644 --- a/docs/guides/composing-atoms.mdx +++ b/docs/guides/composing-atoms.mdx @@ -48,7 +48,7 @@ to override the read-only atom value. ```js const rawNumberAtom = atom(10.1) // can be exported -count roundNumberAtom = atom((get) => Math.round(get(rawNumberAtom))) +const roundNumberAtom = atom((get) => Math.round(get(rawNumberAtom))) const overwrittenAtom = atom(null) export const numberAtom = atom( (get) => get(overwrittenAtom) ?? get(roundNumberAtom),