Skip to main content
100%

Cars Report

✓ Published1🌍 Public
SSandraPicarra
Last edited Oct 17, 2020
Created on Oct 17, 2020
Forked from Cars Report

This example demonstrates a simple text-based report of car listings, showing filtered results based on a price threshold. It displays car details like year, make, model, and price for vehicles costing under $2,000, with a "Loading..." message shown while data is fetched. The code uses React, a Promise-based `getCars` function with a simulated 2-second delay, and JavaScript array methods like `filter`, `map`, and `join` to generate the report. Data is embedded as a JSON string in the script, and the output updates the DOM via `textContent`.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes