MCPcopy Index your code
hub / github.com/jamiebuilds/react-loadable / constructor

Method constructor

src/index.js:138–149  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

136
137 return class LoadableComponent extends React.Component {
138 constructor(props) {
139 super(props);
140 init();
141
142 this.state = {
143 error: res.error,
144 pastDelay: false,
145 timedOut: false,
146 loading: res.loading,
147 loaded: res.loaded
148 };
149 }
150
151 static contextTypes = {
152 loadable: PropTypes.shape({

Callers

nothing calls this directly

Calls 1

initFunction · 0.85

Tested by

no test coverage detected