airbnb / airbnb/babel-plugin-inline-react-svg
`defaultProps` is deprecated for fn components
- Dominant language
- JavaScript
- Stars
- 474
- Forks
- 90
- PR merge metrics
- No merged PRs in 30d
Description
Message from react: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead
https://react.dev/blog/2024/04/25/react-19-upgrade-guide#removed-deprecated-react-apis
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the React 19 upgrade guide linked in the issue, then inspect the plugin's generated React component output to find where function components use defaultProps. Confirm the expected replacement and identify the relevant existing tests or fixtures; done means the warning is no longer produced while SVG component behavior remains unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- babel, javascript, react
- Domain
- frontend, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100