Skip to main content
100%

Cars Report

✓ Published0🌍 Public
SShriram Bhosle
Last edited Apr 9, 2021
Created on Jan 8, 2020
Forked from Cars Report

This example shows a minimal React-based data report that reads a hardcoded array of car objects and displays the make of the second car in large text on the page. The data is embedded as a JSON string in both `cars.js` and `index.js`, then parsed with `JSON.parse` and accessed via array indexing. The rendered message is set by directly manipulating the `textContent` of a `<pre>` element with `document.getElementById`, using plain DOM APIs rather than React’s rendering lifecycle. The page structure is static HTML, with the JavaScript bundled and injected via the `bundle.js` script.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes