From 37d7982057fc99c944cece5850d7baa6de861a6a Mon Sep 17 00:00:00 2001 From: Sam Selikoff Date: Sat, 9 Aug 2014 19:24:40 -0400 Subject: [PATCH] Clarify section introducing `props` --- docs/tutorial.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tutorial.md b/docs/tutorial.md index bae09735..9d200427 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -181,11 +181,11 @@ var CommentList = React.createClass({ }); ``` -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. +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. ### Using props -Let's create the Comment component. It will read the data passed to it from the CommentList and render some markup: +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: ```javascript // tutorial5.js