Skip to content

Commit

Permalink
React.createPortal is not a function (#10843)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaylee42 authored and gaearon committed Sep 26, 2017
1 parent 26cf268 commit ba1396f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/portals.md
Expand Up @@ -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,
);
Expand Down

0 comments on commit ba1396f

Please sign in to comment.