react19-source-patterns

Reference for React 19 source-file migration patterns, including API changes, ref handling, and context updates.

INSTALLATION
npx skills add https://github.com/github/awesome-copilot --skill react19-source-patterns
Run in your project or agent environment. Adjust flags if your CLI version differs.

SKILL.md

$27

PropTypes Rule

Do not remove .propTypes assignments. The prop-types package still works as a standalone validator. React 19 only removes the built-in runtime checking from the React package the package itself remains valid.

Add this comment above any .propTypes block:

// NOTE: React 19 no longer runs propTypes validation at runtime.

// PropTypes kept for documentation and IDE tooling only.

Read the Reference

For full before/after code for each migration, read **references/api-migrations.md**. It contains the complete patterns including edge cases for forwardRef with useImperativeHandle, defaultProps null vs undefined behavior, and legacy context provider/consumer cross-file migrations.

BrowserAct

Let your agent run on any real-world website

Bypass CAPTCHA & anti-bot for free. Start local, scale to cloud.

Explore BrowserAct Skills →

Stop writing automation&scrapers

Install the CLI. Run your first Skill in 30 seconds. Scale when you're ready.

Start free
free · no credit card