Skip to content

Commit

Permalink
Fix wrong method name in examples for no-will-update-set-state
Browse files Browse the repository at this point in the history
  • Loading branch information
alexilyaev authored May 24, 2017
1 parent b74a693 commit d414bb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/rules/no-will-update-set-state.md
Original file line number Diff line number Diff line change
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 d414bb7

Please sign in to comment.