Cars Report
✓ Published0🌍 Public
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 descriptionReact Starter code.
MIT Licensed