Created
January 12, 2020 17:16
-
-
Save 01Clarian/50cb211c8ecde6df4ae5cc2dde27013e to your computer and use it in GitHub Desktop.
Component that Display Weather
This file contains 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
import React from 'react' | |
const Weather = ({weather}) => { | |
return ( | |
<div> | |
<p>{weather.city}</p> | |
<p>{weather.temperature}</p> | |
{console.log('Render')} | |
</div> | |
) | |
} | |
export default Weather |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment