Provides exact migration patterns for React string refs (ref="name" + this.refs.name) to React.createRef() in class components. Use this skill whenever migrating string ref usage - including single element refs, multiple refs in a component, refs in lists, callback refs, and refs passed to child components.
安装
npx skills add github/awesome-copilot --skill react18-string-refsnpx skills add github/awesome-copilot --skill react18-string-refs -a claude-code -gnpx skills add github/awesome-copilot --skill react18-string-refs -a codex -ggemini skills install https://github.com/github/awesome-copilot.git --path skills/react18-string-refsgh skill install github/awesome-copilot react18-string-refsgit clone --depth 1 https://github.com/github/awesome-copilot /tmp/github__awesome-copilot
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/github__awesome-copilot/skills/react18-string-refs ~/.claude/skills/react18-string-refs # Claude Code
cp -R /tmp/github__awesome-copilot/skills/react18-string-refs ~/.agents/skills/react18-string-refs # Codex, Cursor, Gemini CLI, Copilot, OpenCode