Skip to content

Commit 255f238

Browse files
committed
Clarify section introducing props
1 parent c506b44 commit 255f238

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,11 @@ var CommentList = React.createClass({
181181
});
182182
```
183183

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.
185185

186186
### Using props
187187

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:
189189

190190
```javascript
191191
// tutorial5.js

0 commit comments

Comments
 (0)