@samitouri / QOS-React / commits / ba1396fb03

React.createPortal is not a function (#10843)

Kaylee Knowles committed Sep 26, 2017 at 14:41 UTC ba1396fb03d7786d533e5d39c5e65fe12120c862
1 file changed +1 -1
docs/docs/portals.md
+1 -1
@@ -33,7 +33,7 @@ However, sometimes it's useful to insert a child into a different location in th
33 render() {
34 // React does *not* create a new div. It renders the children into `domNode`.
35 // `domNode` is any valid DOM node, regardless of its location in the DOM.
36 - return React.createPortal(
36 + return ReactDOM.createPortal(
37 this.props.children,
38 domNode,
39 );