Cars Report
✓ Published1🌍 Public
This example displays a text-based report of cars priced under $2,000, listing each vehicle’s year, make, model, and price. The page initially shows “loading...” while the data is fetched asynchronously. Using React, the code defines a `getCars` function that simulates a delay before returning a JSON array, and a `genReport` function that filters and formats the entries. The report is rendered into a `<pre>` element via vanilla JavaScript DOM manipulation.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.
MIT Licensed