Cars Report
✓ Published0🌍 Public
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 descriptionA bare minimum HTML page.
See also React Starter.
MIT Licensed