Skip to main content
100%

Cars Report

✓ Published0🌍 Public
Ddanielblnunes
Last edited Jun 8, 2020
Created on Jun 8, 2020
Forked from Cars Report

This example demonstrates a simple asynchronous data report. It displays a list of cars (year, make, model, and price) that fall below a specified price threshold, initially showing a “Loading…” message. The React-driven code uses JavaScript Promises via `getCars()` to simulate fetching a hardcoded JSON array, then filters and formats the data with `generateReport()` and `formatCar()`. The output is rendered as plain text inside an HTML `<pre>` element, updated after a two-second delay.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes