Skip to main content
100%

Cars Report

✓ Published1🌍 Public
Ssamwatersw15
Last edited Sep 12, 2020
Created on Sep 9, 2020
Forked from HTML Starter

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 description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes