Skip to content

Commit 1ce29d4

Browse files
committed
Fix no-did-update-set-state documentation
1 parent 376dc53 commit 1ce29d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/rules/no-did-update-set-state.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ var Hello = React.createClass({
5555
...
5656
```
5757

58-
### `allow-in-func` mode
58+
### `disallow-in-func` mode
5959

6060
By default this rule forbids any call to `this.setState` in `componentDidUpdate` outside of functions. The `disallow-in-func` mode makes this rule more strict by disallowing calls to `this.setState` even within functions.
6161

0 commit comments

Comments
 (0)