From 5e592cecdde384eab0b796292ee55b50445e190f Mon Sep 17 00:00:00 2001 From: Richard Date: Mon, 25 Mar 2024 02:22:55 -0700 Subject: [PATCH] docs: showcase atom functions --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4985450..d34bbf9 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ Charm = "littensy/charm@VERSION" import { atom, derive, subscribe } from "@rbxts/charm"; const counterAtom = atom(0); -const doubleCounterAtom = derive(() => counterAtom() * 2); +const doubleCounterAtom = () => counterAtom() * 2; subscribe(doubleCounterAtom, (value) => { print(value);