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

Method render

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

Source from the content-addressed store, hash-verified

219 };
220
221 render() {
222 if (!canUseDOM || !isReact16) {
223 return null;
224 }
225
226 if (!this.node && isReact16) {
227 this.node = createHTMLElement("div");
228 }
229
230 const createPortal = getCreatePortal();
231 return createPortal(
232 <ModalPortal
233 ref={this.portalRef}
234 defaultStyles={Modal.defaultStyles}
235 {...this.props}
236 />,
237 this.node
238 );
239 }
240}
241
242polyfill(Modal);

Callers

nothing calls this directly

Calls 2

getCreatePortalFunction · 0.85
createHTMLElementFunction · 0.70

Tested by

no test coverage detected