From d2d7ba16f161dcaa8a3321e9370997d7740a26d7 Mon Sep 17 00:00:00 2001 From: Ricardo Date: Mon, 5 Jun 2017 15:51:59 +0100 Subject: [PATCH] Insert blockquote on prop value explanation. (#9770) While reading the page, the "chain of thought" is broken by stating that the `tempertature` and `onTemperatureChange` don't have any special meaning. Making this a blockquote makes that note look more like a comment and keep the "chain of thought" intact. --- docs/lifting-state-up.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/lifting-state-up.md b/docs/lifting-state-up.md index 359ca7df7..643240cfe 100644 --- a/docs/lifting-state-up.md +++ b/docs/lifting-state-up.md @@ -196,7 +196,7 @@ Now, when the `TemperatureInput` wants to update its temperature, it calls `this this.props.onTemperatureChange(e.target.value); ``` -Note that there is no special meaning to either `temperature` or `onTemperatureChange` prop names in custom components. We could have called them anything else, like name them `value` and `onChange` which is a common convention. +> Note that there is no special meaning to either `temperature` or `onTemperatureChange` prop names in custom components. We could have called them anything else, like name them `value` and `onChange` which is a common convention. The `onTemperatureChange` prop will be provided together with the `temperature` prop by the parent `Calculator` component. It will handle the change by modifying its own local state, thus re-rendering both inputs with the new values. We will look at the new `Calculator` implementation very soon.