Skip to main content
100%

Fork of Cars Report

✓ Published0🌍 Public
UuwFengyuan
Last edited Jan 23, 2023
Created on Jan 23, 2023
Forked from Cars Report

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 description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes