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

Method constructor

examples/bootstrap/app.js:10–13  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected