Files
react.dev/img
Vesa Laakso f76b6a94b7 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
2017-03-02 00:28:09 +00:00
..
2016-11-16 14:36:20 +00:00
2016-10-21 20:59:08 +01:00
2016-10-21 20:59:08 +01:00
2016-10-21 20:59:08 +01:00
2016-10-21 20:59:08 +01:00
2014-08-30 16:03:49 -07:00
2013-05-29 12:54:02 -07:00
2016-10-21 20:59:08 +01:00
2016-03-07 13:15:41 -08:00