atom/github

Replace getDerivedStateFromProps with memoization

Open

#1,611 opened on Jul 26, 2018

View on GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (469 forks)batch import
code-cleanup :wrench:good first issue

Repository metrics

Stars
 (1,069 stars)
PR merge metrics
 (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