Skip to content

Commit

Permalink
Merge pull request #1222 from alexilyaev/patch-1
Browse files Browse the repository at this point in the history
Fix wrong method name in examples for no-will-update-set-state
  • Loading branch information
ljharb committed May 24, 2017
2 parents 5aa4470 + d414bb7 commit a80cf0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/rules/no-will-update-set-state.md
Expand Up @@ -63,7 +63,7 @@ The following patterns are considered warnings:

```jsx
var Hello = createReactClass({
componentDidUpdate: function() {
componentWillUpdate: function() {
this.setState({
name: this.props.name.toUpperCase()
});
Expand All @@ -76,7 +76,7 @@ var Hello = createReactClass({

```jsx
var Hello = createReactClass({
componentDidUpdate: function() {
componentWillUpdate: function() {
this.prepareHandler(function callback(newName) {
this.setState({
name: newName
Expand Down

0 comments on commit a80cf0c

Please sign in to comment.