fix: Capitalized "the" at start of sentence (#34562)

pull/24210/head^2
Randell Dawson 2018-12-08 15:01:51 -08:00 committed by Tom
parent 36c0a69a9a
commit e230039832
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ this.setState(increment)
Importing state via changes via functions helps keep each module as short as possible and can be used for cleaner code.
#### setState's callback function
the `setState` method for class based React components also takes a second argument: a callback function that is called once state is successfully updated. This can be useful for performing tasks that rely on the most recent state value (but aren't in the render method).
The `setState` method for class based React components also takes a second argument: a callback function that is called once state is successfully updated. This can be useful for performing tasks that rely on the most recent state value (but aren't in the render method).
```
this.setState({ friends: 0}, () => this.findNewFriends());
...