Skip to content

Commit 68cef01

Browse files
committed
chore(site): update react docs (#2806)
<!-- Please make sure there is an issue that this PR is correlated to. --> ## Changes <!-- If there are frontend changes, please include screenshots. -->
1 parent 88d29e6 commit 68cef01

File tree

3 files changed

+22
-341
lines changed

3 files changed

+22
-341
lines changed

site/public/llms-full.txt

Lines changed: 3 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

site/src/content/docs/actors/quickstart/react.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Create your actor registry on the backend:
2121
import { actor, setup } from "@rivetkit/actor";
2222

2323
export const counter = actor({
24+
onAuth: () => {}, // Skip authentication (can be configured later)
2425
state: { count: 0 },
2526
actions: {
2627
increment: (c, amount: number = 1) => {
@@ -45,6 +46,8 @@ Start a server to run your actors:
4546

4647
```ts {{"title":"backend/server.ts"}}
4748
import { registry } from "./registry";
49+
50+
// Run server with default configuration (port 8080)
4851
registry.runServer();
4952
```
5053

0 commit comments

Comments
 (0)