MCPcopy Index your code
hub / github.com/krasimir/react-in-patterns / render

Method render

code/composition/src/app.jsx:17–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15 setTimeout(() => this.setState({ data: 'Hey there!' }), 5000);
16 }
17 render() {
18 if (this.state.data === null) return null;
19 return <section>{ this.props.render(this.state.data) }</section>;
20 }
21}
22DataProvider.propTypes = {
23 render: PropTypes.func

Callers

nothing calls this directly

Calls 1

renderMethod · 0.45

Tested by

no test coverage detected