From d414bb723d4278d7664aa87d34485fb9579b1b4d Mon Sep 17 00:00:00 2001 From: Alex Ilyaev Date: Wed, 24 May 2017 19:15:13 +0300 Subject: [PATCH] Fix wrong method name in examples for no-will-update-set-state --- docs/rules/no-will-update-set-state.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/rules/no-will-update-set-state.md b/docs/rules/no-will-update-set-state.md index 6225d2ccaa..8735ffa8ed 100644 --- a/docs/rules/no-will-update-set-state.md +++ b/docs/rules/no-will-update-set-state.md @@ -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() }); @@ -76,7 +76,7 @@ var Hello = createReactClass({ ```jsx var Hello = createReactClass({ - componentDidUpdate: function() { + componentWillUpdate: function() { this.prepareHandler(function callback(newName) { this.setState({ name: newName