Skip to content

Commit

Permalink
Merge pull request #932 from gnarf/patch-1
Browse files Browse the repository at this point in the history
[docs] mention ignorePureComponents earlier
  • Loading branch information
ljharb authored Oct 28, 2016
2 parents 99cec3e + 6153123 commit d041fe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/prefer-stateless-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit d041fe4

Please sign in to comment.