Skip to main content
100%

Cars Report

✓ Published0🌍 Public
Lloicvdk
Last edited Jul 20, 2020
Created on Jul 20, 2020
Forked from React Starter

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 description

React Starter code.

MIT Licensed

Similar vizzes