Skip to main content
100%

Cars Report

✓ Published1🌍 Public
AAnnie Liao
Last edited Jun 5, 2020
Created on Jun 4, 2020
Forked from React Starter

This example displays a plain-text report of cars priced under $2,000, loading the list asynchronously via a Promise in `getCars.js`. It formats each entry with `formatCar` into a “year make model $price” line and joins them with newlines in `generateReport`. The React-free interface uses vanilla DOM manipulation in `index.js` to update a `<pre>` element, while a simulated one-second delay demonstrates async data fetching before rendering the report.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes