A Basic web component that pulls the weather from openweathermap.org
This was written for intended use in React libraries, but should work for everything. You place the zip and APIKEY as props into the component and it should pull the data and show the weather and city name.
Required Props: APIKEY
, ZIP
Required Peer Dependencies:
Required props: APIKEY
, ZIP
import 'ecleptic-web-weather-component'
function App(){
...
<ecleptic-web-weather-component zip={ZIP} APIKEY={APIKEY}></ecleptic-web-weather-component>
...
}
export default App
- Added readme and API usage
- Created Basic API Props needing ZIP & API token