From 8457666d06834a888791737062b9c3596fc72448 Mon Sep 17 00:00:00 2001 From: David Maskasky Date: Tue, 3 Oct 2023 12:22:55 -0700 Subject: [PATCH] update readme --- src/mutableAtom/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mutableAtom/README.md b/src/mutableAtom/README.md index 4e1e7be..981c991 100644 --- a/src/mutableAtom/README.md +++ b/src/mutableAtom/README.md @@ -91,7 +91,7 @@ function mutableAtom(value: Value, options?: Options): Atom<{ valu Count value is stored under the `value` property. ```jsx -const countProxyAtom = mutableAtom(0) +const countProxyAtom = mutableAtom(0) function IncrementButton() { const countProxy = useAtomValue(countProxyAtom) @@ -117,7 +117,7 @@ type Options = { Be careful not to mutate the proxy directly in the atom's read function or during render in React components. Doing so might trigger an infinite render loop. ```ts -const countProxyAtom = mutableAtom(0) +const countProxyAtom = mutableAtom(0) atom( (get) => {