atom/github

Replace getDerivedStateFromProps with memoization

Open

#1,611 opened on 2018年7月26日

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
 (30d に merged PR はありません)

説明

Where possible, it would be cleaner and less error-prone to replace components that implement static getDerivedStateFromProps() with PureComponents or memoize-one:

コントリビューターガイド