Skip to main content
100%

Fork of Cars report

✓ Published1🌍 Public
Kknguyengithub
Last edited Sep 17, 2021
Created on Sep 17, 2021
Forked from Cars report

This example displays the make of the first car in a static dataset, rendering “Honda” as large text on a plain HTML page. It imports car data from a separate `cars.js` module, which contains a hardcoded JSON array of five vehicles with year, make, model, and price fields. The `index.js` file parses this JSON using `JSON.parse` and updates the DOM by setting the `textContent` of a `<pre>` element with `id="message-element"`, styled via inline CSS. The visualization uses no charting library, relying solely on React-like modular imports and vanilla JavaScript.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes