Skip to content

Instantly share code, notes, and snippets.

Last active Oct 6, 2018
What would you like to do?
Async Component - part 1
render() {
const { ConditionalRender } = this.state;
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h1 className="App-title">Welcome to React</h1>
{ConditionalRender &&
<MyAwesomeComponent />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment