Provides exact before/after migration patterns for the three unsafe class component lifecycle methods - componentWillMount, componentWillReceiveProps, and componentWillUpdate - targeting React 18.3.1. Use this skill whenever a class component needs its lifecycle methods migrated, when deciding between getDerivedStateFromProps vs componentDidUpdate, when adding getSnapshotBeforeUpdate, or when…
安装
npx skills add github/awesome-copilot --skill react18-lifecycle-patternsnpx skills add github/awesome-copilot --skill react18-lifecycle-patterns -a claude-code -gnpx skills add github/awesome-copilot --skill react18-lifecycle-patterns -a codex -ggemini skills install https://github.com/github/awesome-copilot.git --path skills/react18-lifecycle-patternsgh skill install github/awesome-copilot react18-lifecycle-patternsgit 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-lifecycle-patterns ~/.claude/skills/react18-lifecycle-patterns # Claude Code
cp -R /tmp/github__awesome-copilot/skills/react18-lifecycle-patterns ~/.agents/skills/react18-lifecycle-patterns # Codex, Cursor, Gemini CLI, Copilot, OpenCode