cars report
✓ Published0🌍 Public
This example displays a text-based report of cars priced under $2,000, formatted as a list of year, make, model, and price. It initially shows a “loading…” message while fetching data asynchronously. Using a Promise from `getCars`, it parses embedded JSON car data and processes it with `generateReport`, which filters and maps entries via `formatCar`. The React starter code writes the final report to a `<pre>` element using `document.getElementById`, demonstrating a simple data-loading and rendering flow.
AI-generated descriptionReact Starter code.
MIT Licensed