React Quickstart
Build real-time React applications with Rivet Actors
Install Dependencies
Create Backend Actor
Create your actor registry on the backend:
Setup Backend Server
Start a server to run your actors:
Create React Frontend
Set up your React application:
Setup Vite Configuration
Configure Vite for development:
Run Your Application
Start both the backend and frontend:
Terminal 1: Start the backend
Terminal 2: Start the frontend
Open http://localhost:5173
in your browser. Try opening multiple tabs to see real-time sync in action.
Deploy
By default, Rivet stores actor state on the local file system. To scale Rivet in production, follow a guide to deploy to a hosting provider or integrate a driver:
Hosting Providers
Railway
Cloudflare Workers
Rivet Cloud (Enterprise)
Drivers
Configuration Options
Add Your Own Backend Endpoints
Add custom HTTP endpoints alongside your actors to handle additional business logic, authentication, and integrations with external services.
See backend quickstart for more information.