Skip to content

Commit

Permalink
Merge pull request facebook#2428 from cody/fixes
Browse files Browse the repository at this point in the history
React.renderComponent --> React.render
  • Loading branch information
zpao committed Oct 29, 2014
2 parents ce1b394 + 93ac4d0 commit b2b8e5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/docs/02.2-jsx-spread.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <Component foo={x} bar={y} />;
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/06-transferring-props.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var FancyCheckbox = React.createClass({
);
}
});
React.renderComponent(
React.render(
<FancyCheckbox checked={true} onClick={console.log}>
Hello world!
</FancyCheckbox>,
Expand Down Expand Up @@ -70,7 +70,7 @@ var FancyCheckbox = React.createClass({
);
}
});
React.renderComponent(
React.render(
<FancyCheckbox checked={true} onClick={console.log}>
Hello world!
</FancyCheckbox>,
Expand Down

0 comments on commit b2b8e5c

Please sign in to comment.