Skip to main content
100%

Cars Report

✓ Published0🌍 Public
1123fischer
Last edited Nov 13, 2020
Created on Nov 13, 2020
Forked from React Starter

This example shows a text-based car report generated from a static JSON dataset of four vehicles, displaying each car’s year, make, and model in a large preformatted block on a webpage. The interface initially shows a "Loading..." message, then after a two-second simulated delay, filters the cars to include only those newer than 1997 and joins their formatted names with newlines. The code uses React starter files, custom JavaScript modules (`getCars`, `formatCar`, `generateReport`), promises for asynchronous data retrieval, and DOM manipulation via `document.getElementById` to update the message element.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes