Skip to main content
100%

CAR REPORTr

✓ Published0🌍 Public
Ccaliew
Last edited Dec 28, 2019
Created on Dec 28, 2019
Forked from HTML Starter

This example displays a plain-text report of cars priced under $1500, formatted as "$year $make $model:$price" and output in a large HTML `<pre>` element. The report is generated by filtering a hardcoded JSON array of seven car objects, then mapping each car through a `formatCar` function and joining the results with newlines. The code imports the car data and formatter from separate ES modules and uses React 16.10 alongside the ReactDOM production builds, though the output itself is written directly to the DOM via `document.getElementById` rather than through React rendering.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes