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

Method render

specs/Modal.spec.js:786–803  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

784 }
785
786 render() {
787 const { classModifier } = this.state;
788 const portalClassName = `portal${classModifier}`;
789
790 return (
791 <div>
792 <Modal
793 ref={modalComponent => {
794 modal = modalComponent;
795 }}
796 isOpen
797 portalClassName={portalClassName}
798 >
799 <span>Test</span>
800 </Modal>
801 </div>
802 );
803 }
804 }
805
806 Modal.setAppElement(node);

Callers 3

Modal.spec.jsFile · 0.45
withModalFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected