Skip to content

Instantly share code, notes, and snippets.

@bruceharris
Created March 2, 2018 15:52
Show Gist options
  • Save bruceharris/a0790cc8437960e579df4951e161493f to your computer and use it in GitHub Desktop.
Save bruceharris/a0790cc8437960e579df4951e161493f to your computer and use it in GitHub Desktop.
React Unit Testing Example 4
class App extends Component {
render() {
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>
<p className="App-intro">
To get started, edit <code>src/App.js</code> and save to reload.
</p>
<LoadingIndicator isLoading={false}>
<div>ahoy!</div>
</LoadingIndicator>
</div>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment