We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 019b985 commit 6ddbc69Copy full SHA for 6ddbc69
docs/guides/composing-atoms.mdx
@@ -48,7 +48,7 @@ to override the read-only atom value.
48
49
```js
50
const rawNumberAtom = atom(10.1) // can be exported
51
-count roundNumberAtom = atom((get) => Math.round(get(rawNumberAtom)))
+const roundNumberAtom = atom((get) => Math.round(get(rawNumberAtom)))
52
const overwrittenAtom = atom(null)
53
export const numberAtom = atom(
54
(get) => get(overwrittenAtom) ?? get(roundNumberAtom),
0 commit comments