MCPcopy Index your code
hub / github.com/ctrlplusb/react-async-component / render

Method render

src/asyncComponent.js:186–201  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

184 }
185
186 render() {
187 const { module, error } = state
188
189 if (error) {
190 return ErrorComponent ? (
191 <ErrorComponent {...this.props} error={error} />
192 ) : null
193 }
194
195 const Component = es6Resolve(module)
196 return Component ? (
197 <Component {...this.props} />
198 ) : LoadingComponent ? (
199 <LoadingComponent {...this.props} />
200 ) : null
201 }
202 }
203}

Callers

nothing calls this directly

Calls 1

es6ResolveFunction · 0.85

Tested by

no test coverage detected