@samitouri / QOS-React-2 / commits / 584a7c5f1c

Clarifies "Fetching from the server"

Frankie Bagnardi committed Sep 14, 2015 at 20:21 UTC 584a7c5f1c018bb4e47fc0dd2f4ba6357320e7be
1 file changed +2
docs/docs/tutorial.md
+2
@@ -347,6 +347,8 @@ React.render(
347
348 This component is different from the prior components because it will have to re-render itself. The component won't have any data until the request from the server comes back, at which point the component may need to render some new comments.
349
350 +Note: the code will not be working at this step.
351 +
352 ### Reactive state
353
354 So far, based on its props, each component has rendered itself once. `props` are immutable: they are passed from the parent and are "owned" by the parent. To implement interactions, we introduce mutable **state** to the component. `this.state` is private to the component and can be changed by calling `this.setState()`. When the state updates, the component re-renders itself.