MCPcopy Create free account
hub / github.com/reactjs/react-modal / contentElement

Function contentElement

specs/Modal.spec.js:324–328  ·  view source on GitHub ↗
(props, children)

Source from the content-addressed store, hash-verified

322
323 it("supports custom contentElement", () => {
324 const contentElement = (props, children) => (
325 <div {...props} id="custom">
326 {children}
327 </div>
328 );
329
330 const props = { isOpen: true, contentElement };
331 withModal(props, "hello", modal => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…