From 532de6c4b56a0531c09b94fac7800dcf5c3a56bb Mon Sep 17 00:00:00 2001 From: Kaylee Knowles Date: Tue, 26 Sep 2017 14:32:31 -0400 Subject: [PATCH] React.createPortal is not a function --- docs/docs/portals.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/portals.md b/docs/docs/portals.md index 5545fb9f2753..04ebd22bb462 100644 --- a/docs/docs/portals.md +++ b/docs/docs/portals.md @@ -33,7 +33,7 @@ However, sometimes it's useful to insert a child into a different location in th render() { // React does *not* create a new div. It renders the children into `domNode`. // `domNode` is any valid DOM node, regardless of its location in the DOM. - return React.createPortal( + return ReactDOM.createPortal( this.props.children, domNode, );