Skip to content

Commit

Permalink
[Docs] prefer-stateless-function: fix docs for `ignorePureComponent…
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Aug 29, 2016
1 parent 80fd8e1 commit 9f76459
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/rules/prefer-stateless-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ class Foo extends React.Component {

```js
...
"prefer-stateless-function": [<enabled>, { "ignorePureComponent": <ignorePureComponent> }]
"prefer-stateless-function": [<enabled>, { "ignorePureComponents": <ignorePureComponents> }]
...
```

* `enabled`: for enabling the rule. 0=off, 1=warn, 2=error. Defaults to 0.
* `ignorePureComponent`: optional boolean set to `true` to ignore components extending from `React.PureComponent` (default to `false`).
* `ignorePureComponents`: optional boolean set to `true` to ignore components extending from `React.PureComponent` (default to `false`).

### `ignorePureComponent`
### `ignorePureComponents`

When `true` the rule will ignore Components extending from `React.PureComponent` that use `this.props` or `this.context`.

Expand Down

0 comments on commit 9f76459

Please sign in to comment.