0 comments (0 comments)0 reactions (0 reactions)0 assignees (0 assignees)JavaScript469 forks (469 forks)batch import
code-cleanup :wrench:good first issue
Repository metrics
- Stars
- 1,069 stars (1,069 stars)
- PR merge metrics
- No merged PRs in 30d (No merged PRs in 30d)
Description
Where possible, it would be cleaner and less error-prone to replace components that implement static getDerivedStateFromProps() with PureComponents or memoize-one:
Contributor guide
- Research direction
- Find all React components that use static getDerivedStateFromProps. For each component, determine if it can be converted to a PureComponent or if memoization with memoize one is appropriate. Follow the guidance in the linked blog post to replace the lifecycle method. Run the existing tests to ensure no regression.
- Tech stack
- reactjavascript
- Domain
- frontend
- Issue type
- Refactor
- Prerequisites
- ReactJavaScript