![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
react-open-weather-map
Advanced tools
Yet another React Weather component based on OpenWeatherMap's API
Yet another React Weather component based on OpenWeatherMap's API
Npm install using the following command:
npm i react-open-weather-map
And use it inside your React app:
import OpenWeatherMap from 'react-open-weather-map';
const props = { data: sample }; // info: sample is the response object from the OpenWeatherMap's API
<OpenWeatherMap {...props} />
Data sample:
{
"weather": {
"coord": {
"lon": -0.13,
"lat": 51.51
},
"weather": [
{
"id": 500,
"main": "Rain",
"description": "light rain",
"icon": "10n"
}
],
"base": "cmc stations",
"main": {
"temp": 16.62,
"pressure": 1013,
"humidity": 88,
"temp_min": 15,
"temp_max": 18.5
},
"wind": {
"speed": 3.6,
"deg": 250
},
"rain": {
"3h": 0.215
},
"clouds": {
"all": 32
},
"dt": 1473541622,
"sys": {
"type": 1,
"id": 5091,
"message": 0.0107,
"country": "GB",
"sunrise": 1473485363,
"sunset": 1473531820
},
"id": 2643743,
"name": "London",
"cod": 200
}
}
The component accepts a config object that can be used in order to specify:
name | type | default | description |
---|---|---|---|
containerClassName | string | 'react-open-weather-map' | the container class name |
import OpenWeatherMap from 'react-open-weather-map';
const config = { containerClassName: 'open-weather-map-container-class-name' };
<OpenWeatherMap config={config} />
Clone or download this GitHub repository then run the example app using the following npm commands:
npm i
npm run example
FAQs
Yet another React Weather component based on OpenWeatherMap's API
The npm package react-open-weather-map receives a total of 14 weekly downloads. As such, react-open-weather-map popularity was classified as not popular.
We found that react-open-weather-map demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.