Skip to main content
100%

click counter

✓ Published0🌍 Public
Bbryce-walsh
Last edited Apr 19, 2021
Created on Mar 23, 2021
Forked from HTML Starter

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 description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes