Created
September 23, 2015 18:49
-
-
Save ddgromit/5bc692adf501bbb58beb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// WeatherPage.js | |
import LoadingContainer from './LoadingContainer'; | |
class WeatherPage extends React.Component { | |
// constructor, componentWillMount, etc... | |
render() { | |
return ( | |
<div> | |
<h1>Weather</h1> | |
<LoadingContainer | |
loading={this.state.loading} | |
error={this.state.error} /> | |
<h2>Todays temperature</h2> | |
<p> | |
{ this.state.temperature } | |
</p> | |
</LoadingContainer> | |
</div> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment