MCPcopy Index your code
hub / github.com/reactjs/react-modal / getCreatePortal

Function getCreatePortal

src/components/Modal.js:21–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19let createHTMLElement = name => document.createElement(name);
20
21const getCreatePortal = () =>
22 isReact16
23 ? ReactDOM.createPortal
24 : ReactDOM.unstable_renderSubtreeIntoContainer;
25
26function getParentElement(parentSelector) {
27 return parentSelector();

Callers 2

ModalClass · 0.85
renderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…