什麼是 docs-rsc-sandpack?
使用 <SandpackRSC> 將互動式 RSC(React 伺服器元件)程式碼範例新增至 React 文件時,或修改 RSC sandpack 基礎結構時使用。 來源:reactjs/react.dev。
使用 <SandpackRSC> 將互動式 RSC(React 伺服器元件)程式碼範例新增至 React 文件時,或修改 RSC sandpack 基礎結構時使用。
透過命令列快速安裝 docs-rsc-sandpack AI 技能到你的開發環境
來源:reactjs/react.dev。
For general Sandpack conventions (code style, naming, file naming, line highlighting, hidden files, CSS guidelines), see /docs-sandpack. This skill covers only RSC-specific patterns.
| Execution model | All code runs in iframe | Server code runs in Web Worker, client code in iframe | | 'use client' directive | Ignored (everything is client) | Required to mark client components | | 'use server' directive | Not supported | Marks Server Functions callable from client |
| async components | Not supported | Supported (server components can be async) | | External dependencies | Supported via package.json | Not supported (only React + react-dom) | | Entry point | App.js with export default | src/App.js with export default | | Component tag | | |
為搜尋與 AI 引用準備的穩定欄位與指令。
npx skills add https://github.com/reactjs/react.dev --skill docs-rsc-sandpack使用 <SandpackRSC> 將互動式 RSC(React 伺服器元件)程式碼範例新增至 React 文件時,或修改 RSC sandpack 基礎結構時使用。 來源:reactjs/react.dev。
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/reactjs/react.dev --skill docs-rsc-sandpack 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/reactjs/react.dev