Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Viewing a saved revision (read-only)

c48317d198af43b49a5138a443947235

Cars Report

0 stars0🌍 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.