@samitouri / QOS-React / commits / 5cc2a4fe3e

Fixed typo: "Calcutor" to "Calculator" (#9047)

Stephie committed Feb 22, 2017 at 09:37 UTC 5cc2a4fe3ef325a3bf6212a66ede9cce90a54fe1
1 file changed +1 -1
docs/docs/lifting-state-up.md
+1 -1
@@ -172,7 +172,7 @@ However, we want these two inputs to be in sync with each other. When we update
172
173 In React, sharing state is accomplished by moving it up to the closest common ancestor of the components that need it. This is called "lifting state up". We will remove the local state from the `TemperatureInput` and move it into the `Calculator` instead.
174
175 -If the `Calcutor` owns the shared state, it becomes the "source of truth" for the current temperature in both inputs. It can instruct them both to have values that are consistent with each other. Since the props of both `TemperatureInput` components are coming from the same parent `Calculator` component, the two inputs will always be in sync.
175 +If the `Calculator` owns the shared state, it becomes the "source of truth" for the current temperature in both inputs. It can instruct them both to have values that are consistent with each other. Since the props of both `TemperatureInput` components are coming from the same parent `Calculator` component, the two inputs will always be in sync.
176
177 Let's see how this works step by step.
178