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

Method constructor

src/components/ModalPortal.js:83–93  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

81 };
82
83 constructor(props) {
84 super(props);
85
86 this.state = {
87 afterOpen: false,
88 beforeClose: false
89 };
90
91 this.shouldClose = null;
92 this.moveFromContentToOverlay = null;
93 }
94
95 componentDidMount() {
96 if (this.props.isOpen) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected