Skip to content

Commit 93ac4d0

Browse files
committed
React.renderComponent --> React.render
Also fixed a spelling mistake.
1 parent ce1b394 commit 93ac4d0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/docs/02.2-jsx-spread.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ prev: jsx-in-depth.html
66
next: jsx-gotchas.html
77
---
88

9-
If you know all the properties that you want to place on a component a head of time, it is easy to use JSX:
9+
If you know all the properties that you want to place on a component ahead of time, it is easy to use JSX:
1010

1111
```javascript
1212
var component = <Component foo={x} bar={y} />;

docs/docs/06-transferring-props.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ var FancyCheckbox = React.createClass({
3737
);
3838
}
3939
});
40-
React.renderComponent(
40+
React.render(
4141
<FancyCheckbox checked={true} onClick={console.log}>
4242
Hello world!
4343
</FancyCheckbox>,
@@ -70,7 +70,7 @@ var FancyCheckbox = React.createClass({
7070
);
7171
}
7272
});
73-
React.renderComponent(
73+
React.render(
7474
<FancyCheckbox checked={true} onClick={console.log}>
7575
Hello world!
7676
</FancyCheckbox>,

0 commit comments

Comments
 (0)