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