Update API docs for unmountAndReleaseReactRootNode

This commit is contained in:
Paul O’Shannessy 2013-10-26 17:38:42 -07:00
parent 1c77e1a492
commit 10f3d93df7
1 changed files with 6 additions and 2 deletions

View File

@ -53,14 +53,18 @@ If the React component was previously rendered into `container`, this will perfo
If the optional callback is provided, it will be executed after the component is rendered or updated.
### React.unmountAndReleaseReactRootNode
### React.unmountComponentAtNode
```javascript
unmountAndReleaseReactRootNode(DOMElement container)
unmountComponentAtNode(DOMElement container)
```
Remove a mounted React component from the DOM and clean up its event handlers and state.
> Note:
>
> This method was called `React.unmountAndReleaseReactRootNode` until v0.5. It still works in v0.5 but will be removed in future versions.
### React.renderComponentToString