Back to Rivet

React Integration

examples/react-vercel/README.md

2.2.11.4 KB
Original Source

Note: This is the Vercel-optimized version of the react example. It uses the hono/vercel adapter and is configured for Vercel deployment.

React Integration

Demonstrates React frontend integration with Rivet Actors.

Getting Started

sh
git clone https://github.com/rivet-dev/rivet.git
cd rivet/examples/react
npm install
npm run dev

Features

  • React frontend: Build interactive UIs with React that connect to Rivet Actors
  • Type-safe client: Use @rivetkit/react hooks for type-safe actor communication
  • Real-time updates: Subscribe to actor events for live UI updates
  • Actor state management: Actors handle backend logic while React manages UI state

Implementation

This example demonstrates React frontend integration with Rivet Actors:

Resources

Read more about React integration, actions, state, and events.

License

MIT