Cars Report
✓ Published0🌍 Public
This example displays a text-based report of used cars priced under $2,000, listing their year, make, model, and price. It initially shows a "loading..." message, then after a simulated 2-second delay, fetches car data as JSON via a Promise from `getCars.js`. The `generateReport.js` module filters the array and maps each car using the `formatCar.js` helper to construct styled lines. React renders the static report in a `<pre>` element, with the page content updated through plain DOM manipulation using `document.getElementById`.
AI-generated descriptionReact Starter code.
MIT Licensed