Frontend 965 installs

rivetkit-client-react

by rivet-dev/skills

RivetKit React client guidance. Use for React apps that connect to Rivet Actors with @rivetkit/react, create hooks with createRivetKit, or manage realtime…

Skill content

RivetKit React Client

Use this skill when building React apps that connect to Rivet Actors with @rivetkit/react.

First Steps

- Install the React client (latest: 2.3.0-rc.5)

npm install @rivetkit/[email protected]

- Create hooks with createRivetKit() and connect with useActor().

Error Handling Policy

- Prefer fail-fast behavior by default.

- Avoid try/catch unless absolutely needed.

- If a catch is used, handle the error explicitly, at minimum by logging it.

Getting Started