small react weather component
- Supports Yahoo API
Install via npm:
npm install react_weather --save
This example shows how to use the Weather component. The component display input data via props.
import React, { Component } from 'react';
import Tempnow from 'react_weather';
const style = {
height: 180,
width: 220,
margin: 20,
textAlign: 'center',
display: 'inline-block',
backgroundColor: '#FBE9E7',
};
<Tempnow location="Chicago" style={style} />
props:
- location - The city name ,zip...etc
- style
### License
MIT