The rule should warn for components that are defined as a class or with React.createClass but could be safely written as pure stateless functions.

his should be considered as a problem:

This should not be considered as a problem:

参考链接

5 1 vote
Article Rating
Subscribe
提醒
guest
0 评论
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x