{"size": 520, "ext": "js", "max_stars_repo_path": "src/components/Weather.js", "max_stars_repo_name": "flo5O/React-Weather-Finder", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/components/Weather.js", "max_issues_repo_name": "flo5O/React-Weather-Finder", "max_issues_repo_issues_event_min_datetime": "2021-03-10T02:29:56.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-18T17:24:21.000Z", "max_forks_repo_path": "src/components/Weather.js", "max_forks_repo_name": "shsaha/React-Weather-Finder", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 4, "max_forks_count": null, "avg_line_length": 26.0, "max_line_length": 78, "alphanum_fraction": 0.5480769231}
import React from 'react';

const Weather = props => {
    const { temperature, city, country, humidity, description, error } = props

    return (
        <React.Fragment>
            {city && country && <p>Location: {city}, {country}</p>}
            {temperature && <p>Temperature: {temperature}</p>}
            {humidity && <p>Humidity: {humidity}</p>}
            {description && <p>Description: {description}</p>}
            {error && <p>{error}</p>}


        </React.Fragment>
    )
}


export default Weather;