Skip to content

Instantly share code, notes, and snippets.

Created November 16, 2019 16:20
What would you like to do?
Weather.js UX Updates
import React from 'react'
const Weather = ({description, city, country, error, temperature}) => {
return (
{city && country && <p>{city}, {country}</p>}
{temperature && <p>{temperature} °F</p>}
{description && <p> Conditions: {description}</p>}
{error && <p>{error}</p>}
export default Weather;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment