@samitouri / QOS-React-2 / commits / 255f238cee

Clarify section introducing `props`

Sam Selikoff committed Aug 9, 2014 at 19:24 UTC 255f238ceea13f61ec41ab49e7a74cb697f90dbc
1 file changed +2 -2
docs/docs/tutorial.md
+2 -2
@@ -181,11 +181,11 @@ var CommentList = React.createClass({
181 });
182 ```
183
184 -Note that we have passed some data from the parent `CommentList` component to the child `Comment` component as both XML-like children and attributes. Data passed from parent to child is called **props**, short for properties.
184 +Note that we have passed some data from the parent `CommentList` component to the child `Comment` components. For example, we passed *Pete Hunt* (via an attribute) and *This is one comment* (via an XML-like child node) to the first `Comment`. Data passed from parent to children components is called **props**, short for properties.
185
186 ### Using props
187
188 -Let's create the Comment component. It will read the data passed to it from the CommentList and render some markup:
188 +Let's create the Comment component. Using **props** we will be able to read the data passed to it from the `CommentList`, and render some markup:
189
190 ```javascript
191 // tutorial5.js