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 and will not scale in production.
The following providers let you deploy & scale Rivet:
For production with Redis storage, install the Redis driver:
Then configure the driver:
Your backend can now be deployed to your cloud provider of choice.
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.