Skip to content

Instantly share code, notes, and snippets.

@01Clarian
Created Nov 16, 2019
Embed
What would you like to do?
Building Weathe.js Component
import React from 'react'
const Weather = ({description, city, country, error, temperature}) => {
return (
<div>
{city && country && <p>{city}, {country}</p>}
{temperature && <p>{temperature}</p>}
{description && <p> {description}</p>}
{error && <p>{error}</p>}
</div>
)
}
export default Weather;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment