Skip to main content
100%

Cars report

✓ Published0🌍 Public
NNikki-gea
Last edited Aug 19, 2020
Created on Aug 19, 2020
Forked from React Starter

This example displays a text-based car report generated from a hardcoded JSON dataset. It filters cars by a maximum price and lists their names, models, and prices using async data loading. The React starter code uses a Promise with `setTimeout` to simulate a two-second fetch delay, and the report is rendered directly into a `<pre>` element via `getElementById`. The `formatCars` and `generateReport` functions handle string formatting and filtering.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes