Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lessons/05-wrapping-dom-libs.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ and then start rendering with React again. Some people call these
DOM stuff, and then keep going on the other side.

The big trick is rendering nothing and then calling
`React.renderComponent` _inside_ a component.
`React.render` _inside_ a component.

```js
var Dialog = React.createClass({
Expand All @@ -94,7 +94,7 @@ var Dialog = React.createClass({

// start a new React render tree with our node and the children
// passed in from above, this is the other side of the portal.
React.renderComponent(<div>{this.props.children}</div>, node):
React.render(<div>{this.props.children}</div>, node):
}
});
```
Expand Down Expand Up @@ -144,7 +144,7 @@ var Dialog = React.createClass({
props = props || this.props;

// the code that used to be in `componentDidMount`
React.renderComponent(<div>{props.children}</div>, this.node):
React.render(<div>{props.children}</div>, this.node):
}
});
```
Expand Down Expand Up @@ -213,7 +213,7 @@ var Dialog = React.createClass({

renderDialogContent: function(props) {
// ...
React.renderComponent(<div>{props.children}</div>, this.node):
React.render(<div>{props.children}</div>, this.node):

// after we've rendered the dialog, now we can call methods on it
// via the props passed in like
Expand Down