🌍 Public
Viewing a saved revision (read-only)
c0ee45c924fb461fa9002b797f50aff3
Cars Report
This example shows a formatted text report of cars filtered by price. It displays a loading message, then fetches a hardcoded JSON dataset of five cars via a simulated network request using Promises. The report lists each car’s year, make, model, and price for those under $2,000, generated with a custom `formatCar` function and `generateReport` that filters and maps the array. The React-based code uses native JavaScript array methods and string concatenation, writing results into an HTML `<pre>` element via `textContent`.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.