Skip to main content
100%

Cars Report

✓ Published0🌍 Public
Aadmk840
Last edited Dec 20, 2019
Created on Dec 20, 2019
Forked from React Starter

This example displays a single car make from a static JSON array by rendering it as plain text in an HTML page. It reads the first record of the `carsJSON` variable and prints its `make` property, “Honda,” into a `<pre>` element. The code uses React as the framework, though no React components or state are invoked; instead, it directly manipulates the Document Object Model via `document.getElementById()` and sets the text content. The data source is a hardcoded JSON string containing three car entries with year, make, model, and price fields.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes