🌍 Public
Viewing a saved revision (read-only)
6f4032fd64de4876867e08099e49a965
Cars Report
This example shows a text-based report of cars filtered by price, displaying each car’s year, make, model, and cost as formatted lines. It first presents a “loading…” message, then asynchronously loads a hardcoded JSON dataset via a Promise and setTimeout in `getCars.js`. The report is generated using array methods (`filter`, `map`, `join`) in `generateReport.js`, with the `formatCar` function composing each line. The React app updates the DOM’s text content directly through `document.getElementById`.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.