-
Notifications
You must be signed in to change notification settings - Fork 47.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Lifting State Up not to mix up DOM value with component state (#…
…9032) * Update Lifting State Up not to mix up DOM value with component state A few weeks ago when teaching my friend, she got stuck on `this.state.value` vs. `event.target.value`. As the documentation talked a lot about "values", and the term value could mean three different things (values in general, the "value" prop / DOM value of the <input> component and the value in state/props), it was not weird that she got a bit confused. * Rename Lifting State Up onChange props to onTemperatureChange This is in-line with how the temperature is provided as a prop named `temperature` * Fix one value prop not being renamed to temperature * Update codepen examples in Lifting state up documentation * Update devtools state change to reflect docs change
- Loading branch information
Showing
2 changed files
with
54 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.