Skip to content

Instantly share code, notes, and snippets.

@eugeniosegala
Last active October 6, 2018 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eugeniosegala/d5d034c610ae3019bae385a87e6a35b9 to your computer and use it in GitHub Desktop.
Save eugeniosegala/d5d034c610ae3019bae385a87e6a35b9 to your computer and use it in GitHub Desktop.
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