From 6153123d682b674c0bf03a08975fa353ca4430ff Mon Sep 17 00:00:00 2001 From: Mx Corey Frang Date: Fri, 28 Oct 2016 15:25:59 -0400 Subject: [PATCH] mention ignorePureComponents earlier When describing `PureComponent` behavior in the Rule Details section, it takes a lot more reading to realize it's a flag you must set to true. --- docs/rules/prefer-stateless-function.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/rules/prefer-stateless-function.md b/docs/rules/prefer-stateless-function.md index 3efee0cabd..aa8285e5e3 100644 --- a/docs/rules/prefer-stateless-function.md +++ b/docs/rules/prefer-stateless-function.md @@ -8,7 +8,7 @@ This rule will check your class based React components for * methods/properties other than `displayName`, `propTypes`, `render` and useless constructor (same detection as ESLint [no-useless-constructor rule](http://eslint.org/docs/rules/no-useless-constructor)) * instance property other than `this.props` and `this.context` -* extension of `React.PureComponent` () +* extension of `React.PureComponent` (if the `ignorePureComponents` flag is true) * presence of `ref` attribute in JSX * `render` method that return anything but JSX: `undefined`, `null`, etc. (only in React <15.0.0, see [shared settings](https://github.com/yannickcr/eslint-plugin-react/blob/master/README.md#configuration) for React version configuration)