mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 04:33:10 +00:00
React.createPortal is not a function (#10843)
This commit is contained in:
committed by
Dan Abramov
parent
60ba86b31a
commit
9bb67835da
@@ -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,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user