From c7b896be20afa3b56fd8a058fb8687d167aefec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20O=E2=80=99Shannessy?= Date: Sat, 26 Oct 2013 17:49:23 -0700 Subject: [PATCH] Updated API docs --- docs/top-level-api.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/top-level-api.html b/docs/top-level-api.html index e53709b726..ac0182c8b7 100644 --- a/docs/top-level-api.html +++ b/docs/top-level-api.html @@ -257,9 +257,15 @@

If the React component was previously rendered into container, this will perform an update on it and only mutate the DOM as necessary to reflect the latest React component.

If the optional callback is provided, it will be executed after the component is rendered or updated.

-

React.unmountAndReleaseReactRootNode

unmountAndReleaseReactRootNode(DOMElement container)
+

React.unmountComponentAtNode

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

renderComponentToString(ReactComponent component, function callback)
 

Render a component to its initial HTML. This should only be used on the server. React will call callback with an HTML string when the markup is ready. You can use this method to can generate HTML on the server and send the markup down on the initial request for faster page loads and to allow search engines to crawl your pages for SEO purposes.