Skip to content

Instantly share code, notes, and snippets.

@01Clarian
Created November 16, 2019 16:20
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/c3348fbc1e1d4a067598f2cabb584470 to your computer and use it in GitHub Desktop.
Save 01Clarian/c3348fbc1e1d4a067598f2cabb584470 to your computer and use it in GitHub Desktop.
Weather.js UX Updates
import React from 'react'
const Weather = ({description, city, country, error, temperature}) => {
return (
<div>
{city && country && <p>{city}, {country}</p>}
{temperature && <p>{temperature} °F</p>}
{description && <p> Conditions: {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