mirror of
https://github.com/littensy/charm.git
synced 2026-10-22 21:01:38 +00:00
docs: update atom module names
This commit is contained in:
parent
4ea1e49e4f
commit
64bd05b304
1 changed files with 4 additions and 4 deletions
|
|
@ -575,7 +575,7 @@ end) --> 4
|
||||||
### React component
|
### React component
|
||||||
|
|
||||||
```luau
|
```luau
|
||||||
local counter = require(script.Parent.counterAtom)
|
local counter = require(script.Parent.counter)
|
||||||
local counterAtom = counter.counterAtom
|
local counterAtom = counter.counterAtom
|
||||||
local incrementCounter = counter.incrementCounter
|
local incrementCounter = counter.incrementCounter
|
||||||
|
|
||||||
|
|
@ -593,7 +593,7 @@ end
|
||||||
### Vide component
|
### Vide component
|
||||||
|
|
||||||
```luau
|
```luau
|
||||||
local counter = require(script.Parent.counterAtom)
|
local counter = require(script.Parent.counter)
|
||||||
local counterAtom = counter.counterAtom
|
local counterAtom = counter.counterAtom
|
||||||
local incrementCounter = counter.incrementCounter
|
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:
|
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
|
```luau
|
||||||
local counter = require(script.Parent.counterAtom)
|
local counter = require(script.Parent.counter)
|
||||||
local todos = require(script.Parent.todosAtom)
|
local todos = require(script.Parent.todos)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
counterAtom = counter.counterAtom,
|
counterAtom = counter.counterAtom,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue