From 93ac4d09a10774c7ff214c263c6be9ab7b00b3f4 Mon Sep 17 00:00:00 2001 From: Stefan Dombrowski Date: Wed, 29 Oct 2014 19:05:16 +0100 Subject: [PATCH] React.renderComponent --> React.render Also fixed a spelling mistake. --- docs/docs/02.2-jsx-spread.md | 2 +- docs/docs/06-transferring-props.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/02.2-jsx-spread.md b/docs/docs/02.2-jsx-spread.md index 7a147584cb7db..ca212bcfe0663 100644 --- a/docs/docs/02.2-jsx-spread.md +++ b/docs/docs/02.2-jsx-spread.md @@ -6,7 +6,7 @@ prev: jsx-in-depth.html next: jsx-gotchas.html --- -If you know all the properties that you want to place on a component a head of time, it is easy to use JSX: +If you know all the properties that you want to place on a component ahead of time, it is easy to use JSX: ```javascript var component = ; diff --git a/docs/docs/06-transferring-props.md b/docs/docs/06-transferring-props.md index f93fbe2fe26c4..d846dcecfba79 100644 --- a/docs/docs/06-transferring-props.md +++ b/docs/docs/06-transferring-props.md @@ -37,7 +37,7 @@ var FancyCheckbox = React.createClass({ ); } }); -React.renderComponent( +React.render( Hello world! , @@ -70,7 +70,7 @@ var FancyCheckbox = React.createClass({ ); } }); -React.renderComponent( +React.render( Hello world! ,