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

Function createHTMLElement

src/components/Modal.js:19–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17const isReact16 = canUseDOM && ReactDOM.createPortal !== undefined;
18
19let createHTMLElement = name => document.createElement(name);
20
21const getCreatePortal = () =>
22 isReact16

Callers 2

componentDidMountMethod · 0.70
renderMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…