salesforce / salesforce/design-system-react

Support for defaultProps will be removed from function components in a future React major release.

Open
#3,087 4 comments 3 reactions 0 assignees View on GitHub

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

Image 2022-12-16 at 11 07 07 AM

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.