Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Cars Report

Public visualization

Viewing a saved revision (read-only)

e8cf9c9e0b034c6c99b4b404c28a7c28

Fork of Cars Report

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