From 9f6b329d8af1c659c0ae891603c0873cb2712a92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20O=E2=80=99Shannessy?= Date: Sat, 26 Oct 2013 17:38:42 -0700 Subject: [PATCH] Update API docs for unmountAndReleaseReactRootNode --- docs/ref-01-top-level-api.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/ref-01-top-level-api.md b/docs/ref-01-top-level-api.md index 0805389c..87c98c14 100644 --- a/docs/ref-01-top-level-api.md +++ b/docs/ref-01-top-level-api.md @@ -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