atom/github

Replace getDerivedStateFromProps with memoization

Open

#1,611 创建于 2018年7月26日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)JavaScript (1,069 star) (469 fork)batch import
code-cleanup :wrench:good first issue

描述

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

贡献者指南