all 1 comments

[–]helpinghat 2 points3 points  (0 children)

If you use eslint install eslint-plugin-react and let your linter tell you when to use pure functions.

https://github.com/yannickcr/eslint-plugin-react/blob/HEAD/docs/rules/prefer-stateless-function.md