casesandberg / casesandberg/react-color
Remove defaultProps for react 18
Open
- Dominant language
- JavaScript
- Stars
- 12.3k
- Forks
- 920
- PR merge metrics
- No merged PRs in 30d
Description
React 18 give warning as following:
Warning: Checkboard: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
Contributor guide
Research direction
Locate the Checkboard function component and its defaultProps declaration in the repository, then read how its props are used. Replace that defaultProps usage with the React 18-compatible form while preserving behavior, and verify that the warning no longer appears in the relevant component or test coverage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100