From 64bd05b30430295eb83460f38cd66a35d0a12e3f Mon Sep 17 00:00:00 2001 From: Richard Date: Fri, 25 Oct 2024 19:46:31 -0700 Subject: [PATCH] docs: update atom module names --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c342e9e..9e4a933 100644 --- a/README.md +++ b/README.md @@ -575,7 +575,7 @@ end) --> 4 ### React component ```luau -local counter = require(script.Parent.counterAtom) +local counter = require(script.Parent.counter) local counterAtom = counter.counterAtom local incrementCounter = counter.incrementCounter @@ -593,7 +593,7 @@ end ### Vide component ```luau -local counter = require(script.Parent.counterAtom) +local counter = require(script.Parent.counter) local counterAtom = counter.counterAtom local incrementCounter = counter.incrementCounter @@ -617,8 +617,8 @@ Charm is designed for both client and server use, but there are often cases wher Start by creating a set of atoms to sync between the server and clients. Export these atoms from a module to be shared between the server and client: ```luau -local counter = require(script.Parent.counterAtom) -local todos = require(script.Parent.todosAtom) +local counter = require(script.Parent.counter) +local todos = require(script.Parent.todos) return { counterAtom = counter.counterAtom,