Created
April 2, 2020 15:33
-
-
Save rjpcasalino/e9f2d0644c2e7e82392c7f096ddc9025 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
render() { | |
if (this.state.forecast.name != undefined) { | |
return e('div', null, null, | |
e('br'), | |
e('small', null, `${this.state.forecast.name}`), | |
e('br'), | |
e('small', null, `${this.state.forecast.shortForecast}`), | |
e('br'), | |
e('small', null, `${this.state.forecast.temperature}`), | |
e('small', {dangerouslySetInnerHTML: { | |
__html: '°'}}, null), | |
e('small', null, `${this.state.forecast.temperatureUnit}`), | |
e('br'), | |
e('small', null, | |
`${this.state.forecast.windSpeed} ${this.state.forecast.windDirection}` | |
), | |
e('br'), | |
//e('img', {src: this.state.forecast.icon, id: 'weather-api-icon' }), | |
); | |
} | |
return e('div', null, "Fetching..."); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment