atom/github

Replace getDerivedStateFromProps with memoization

Open

#1 611 ouverte le 26 juil. 2018

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)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:

Guide contributeur