🌍 Public
Cars Report
This example shows a text-based report of cars filtered by price, displaying each car’s year, make, model, and cost as formatted lines. It first presents a “loading…” message, then asynchronously loads a hardcoded JSON dataset via a Promise and setTimeout in `getCars.js`. The report is generated using array methods (`filter`, `map`, `join`) in `generateReport.js`, with the `formatCar` function composing each line. The React app updates the DOM’s text content directly through `document.getElementById`.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.
MIT Licensed

![Cars Report [complete]](/viz/4b4ccb3909734f17ad45fa51389fe0d1/social-image.png?v=5bc5baa353a545c7b4c49b2197d030c3)






Comments
Sign in to join the discussion.