Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

HTML Starter

Public visualization

HTML Starter

0 stars0🌍 Public
Nnick-yadav
Last edited Aug 6, 2020
Created on Aug 6, 2020
Forked from HTML Starter

This example shows a list of cars filtered by price and displayed as formatted text in a webpage. The sample data contains five car objects with year, make, model, and price fields, defined as a JSON string in `cars.js`. The code uses React’s `import` syntax to bring in the data and a `report` function that filters cars under a given price and maps them to strings via `formatCar`. The result is rendered into the DOM using `document.getElementById` and setting `textContent`, replacing the initial "Hello HTML" message in the `index.html` file.

AI-generated description

A bare minimum HTML page.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed