Skip to main content
100%

Cars Report

✓ Published0🌍 Public
MMichelle Mac
Last edited Sep 27, 2020
Created on Sep 27, 2020
Forked from Hello VizHub

This example displays a loading message followed by a text report of cars priced under $3,000. It fetches car data from a local JSON array wrapped in a Promise via `getCars`. The `generateReport` function filters the cars, formats each with `formatCar` (which outputs like “2009 Ford F150: $3000”), and joins the strings. The React starter code renders the final report into a `<pre>` element using `textContent`.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes