Cars Report
✓ Published0🌍 Public
This example demonstrates a simple text-based report of car listings, filtering results by price and formatting each entry as a single line with the year, make, model, and cost. The page initially displays “Loading,” then renders the report after a simulated two-second delay using a Promise from the `getCars` function. Built with React and vanilla JavaScript, it relies on the `formatCar` and `generateReport` modules, and updates the DOM by setting the `textContent` of a pre-existing `<pre>` element. The data originates from a hardcoded JSON array parsed via `JSON.parse`.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.
MIT Licensed