Community程式設計與開發github.com

rivet-dev/rivetkit-client-react

RivetKit React 客戶端指南。適用於透過 @rivetkit/react 連線至 Rivet Actors 的 React 應用程式、使用 createRivetKit 建立 hooks,或使用 useActor 管理即時狀態。

rivetkit-client-react 是什麼?

此技能提供關於在 React 應用程式中使用 RivetKit 的詳細指南,涵蓋如何連接 Rivet Actors、建立自訂 hooks 以及管理即時狀態。它對於需要與後端服務進行即時雙向通訊、處理 WebSocket 連線或管理複雜應用程式狀態的 React 開發人員尤其有用。該技能支援所有使用 JavaScript/TypeScript 的現代 React 應用程式,並透過 @rivetkit/react 套件提供整合方式。使用 createRivetKit 可以建立可重複使用的 hooks,以封裝與 Actor 的互動邏輯;而 useActor hook 則能讓你輕鬆地在元件中追蹤並更新 Actor 的即時狀態。整體而言,這項技能降低了在 React 生態系統中整合即時功能的複雜度,讓開發者能更專注於實作業務邏輯。

相容平台~Claude Code~Codex CLI~Cursor
Part ofReact
npx skills add https://github.com/rivet-dev/skills/tree/main/skills/rivetkit-client-react

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

rivetkit-client-react 是做什麼的?

RivetKit React 客戶端指南。適用於透過 @rivetkit/react 連線至 Rivet Actors 的 React 應用程式、使用 createRivetKit 建立 hooks,或使用 useActor 管理即時狀態。

Individual skills in this repo

This repo contains 6 individual skills — each has its own dedicated page.

相關技能