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

Method constructor

examples/wc/app.js:12–15  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

10
11class App extends Component {
12 constructor(props) {
13 super(props);
14 this.state = { modalIsOpen: false };
15 }
16
17 openModal = () => {
18 this.setState({modalIsOpen: true});

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected