🌍 Public
click counter
This example demonstrates loading live weather data for London and displaying the current condition, initially set to "cloudy," in an HTML span element. It uses the browser's native `fetch` API to retrieve a JSON file from a GitHub Gist, then parses the response with `response.json()`. The code updates the DOM by querying the span with `document.querySelector` and setting its `innerHTML` to the `main` weather value from the retrieved data. React and ReactDOM are included via UMD scripts but are not actively used in the interaction.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed








Comments
Sign in to join the discussion.