Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Viewing a saved revision (read-only)

505fd0aad7154e14b8e7f051235efcb2

Cars Report

0 stars0🌍 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.