rivetkit-client-react
Originally fromrivet-dev/skills
Installation
SKILL.md
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.1.0-rc.2)
npm install @rivetkit/react@2.1.0-rc.2 - Create hooks with
createRivetKit()and connect withuseActor().
Error Handling Policy
- Prefer fail-fast behavior by default.
- Avoid
try/catchunless absolutely needed. - If a
catchis used, handle the error explicitly, at minimum by logging it.