Skip to main content
100%

Cars Report

✓ Published0🌍 Public
Sshis1011
Last edited Oct 11, 2020
Created on Oct 11, 2020
Forked from Cars Report

This example shows a text-based report of the first car in a small dataset, displaying its make in large type on a minimal HTML page. The data is defined in a separate `cars.js` module as a JSON string parsed into an array of car objects, each containing make, model, year, and price. Using React’s component model, the `index.js` file imports that array, accesses the first entry, and sets it as the text content of an HTML `<pre>` element via `getElementById`. No external visualization libraries are used; the output is plain DOM text.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes