render(
<ReactWeatherStationData
stationUrl={ <URL> }
ticking
/>
)
Fragment of two divs
<>
<div> /* empty when loading || rainIcon || snowIcon */ </div>
<div> /* loadingContent || temperature + degreeCharacter */ </div>
</>
prop | default | description |
---|---|---|
stationUrl |
undefined (required) | Url to station data |
ticking |
false |
Should the station data update. Updates every 30 mins |
degreeCharacter |
'°' |
Degree character |
loadingContent |
'Loading' |
Content when loading. Accepts component |
rainIcon |
'Raining' |
Icon when raining. Accepts component |
snowIcon |
'Snowing' |
Icon when snowing. Accepts component |