Fork of Cars Report
✓ Published0🌍 Public
This example shows a simple report of cars filtered by price. It displays a text list of car descriptions for vehicles under $2,000, formatted as "year make model: $price". The code uses an asynchronous `getCars()` function that returns a Promise resolving to hardcoded JSON data after a 2-second delay. It then filters and maps the data using `formatCar` and updates the HTML `<pre>` element via `textContent`. The page is built with React and plain JavaScript, rendering entirely in the browser.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed