MCPcopy Index your code
hub / github.com/reactjs/react-modal / constructor

Method constructor

examples/basic/simple_usage/index.js:11–17  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

9
10class SimpleUsage extends Component {
11 constructor(props) {
12 super(props);
13 this.state = {
14 title1: DEFAULT_TITLE,
15 currentModal: null
16 };
17 }
18
19 toggleModal = key => event => {
20 event.preventDefault();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected