Skip to main content
100%

Cars Report

✓ Published0🌍 Public
Wwavrydr
Last edited Dec 30, 2019
Created on Dec 30, 2019
Forked from React Starter

This example shows a text-based report of cars priced under $2,000, generated from a hard-coded JSON dataset. After a simulated two-second loading delay, it displays each matching car as a formatted line like “2000 Honda Accord: $2800”. The code uses React for the app structure, JavaScript promises via `getCars()` for asynchronous data retrieval, and a custom `generateReport` function that filters, maps, and joins results, with formatting handled by `formatCar`. The report appears in a red, large-font `<pre>` element.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes