atom/github

Replace getDerivedStateFromProps with memoization

Open

#1611 opened on Jul 26, 2018

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

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