React.renderComponent --> React.render

Also fixed a spelling mistake.
This commit is contained in:
Stefan Dombrowski
2014-10-29 19:05:16 +01:00
parent 445d8d4d76
commit 26ad3053c5
2 changed files with 3 additions and 3 deletions

View File

@@ -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} />;

View File

@@ -37,7 +37,7 @@ var FancyCheckbox = React.createClass({
);
}
});
React.renderComponent(
React.render(
<FancyCheckbox checked={true} onClick={console.log}>
Hello world!
</FancyCheckbox>,
@@ -70,7 +70,7 @@ var FancyCheckbox = React.createClass({
);
}
});
React.renderComponent(
React.render(
<FancyCheckbox checked={true} onClick={console.log}>
Hello world!
</FancyCheckbox>,