🌍 Public
Viewing a saved revision (read-only)
289963b974004800a9a5b6e9e89b17f1
Cars Report
This data-visualization example displays a text-based report of cars priced under $2,000. It begins with a "Loading..." message and then presents a list of car details (year, make, model, and price) after a simulated two-second data fetch. Built with React, the code uses JavaScript’s `Promise` for asynchronous data retrieval and string formatting via custom modules. The report is generated by filtering an inline JSON array and mapping each car to a formatted string, which is then rendered in a `<pre>` element.
AI-generated descriptionReact Starter code.