1.5.0 • Published 6 years ago
open-weather-lib v1.5.0
open-weather-lib
Made with create-react-library
Install
npm install --save open-weather-libUsage
import React from 'react'
import { OpenWeather } from 'open-weather-lib'
import './node_modules/open-weather-lib/dist/index.css';
const WEATHER_DATA = {
appId:'YOUR_OPEN_WEATHER_API_ID',
units:'metric/impercial',
type:'current',
"location":{
"city":"Guadalajara",
"country":"Mx"
},
"cord":{
"lat":"20.6565116",
"lon":"-103.4128702"
},
};
const App = () => {
return <OpenWeather
weatherData={WEATHER_DATA}
/>
}
export default AppNotes:

By now is just the current weather, we will work for have more options