Skip to content

Instantly share code, notes, and snippets.

@eugeniosegala eugeniosegala/async_example1.js Secret
Last active Oct 6, 2018

Embed
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>
</header>
{ConditionalRender &&
<MyAwesomeComponent />
}
</div>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.