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 投票
文章评分
订阅评论
提醒
guest
0 评论
内联反馈
查看所有评论
0
希望看到您的想法,请发表评论。x
()
x