Skip to content

Instantly share code, notes, and snippets.

@01Clarian
Created January 12, 2020 17:16
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 01Clarian/50cb211c8ecde6df4ae5cc2dde27013e to your computer and use it in GitHub Desktop.
Save 01Clarian/50cb211c8ecde6df4ae5cc2dde27013e to your computer and use it in GitHub Desktop.
Component that Display Weather
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