Cars Report
✓ Published0🌍 Public
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 descriptionReact Starter code.
MIT Licensed