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

Method componentDidMount

src/components/ModalPortal.js:95–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93 }
94
95 componentDidMount() {
96 if (this.props.isOpen) {
97 this.open();
98 }
99 }
100
101 componentDidUpdate(prevProps, prevState) {
102 if (process.env.NODE_ENV !== "production") {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected