salesforce / salesforce/design-system-react
Support for defaultProps will be removed from function components in a future React major release.
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 982
- Forks
- 440
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 4
Description
https://github.com/reactjs/rfcs/pull/107
Seems like they're moving ahead with this as it now throws on React 18

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked React RFC and reproduce the React 18 warning described in the issue. Then locate the affected function components and determine the scope of their defaultProps usage; done means they retain equivalent default behavior without triggering the warning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100