Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Meny tutorial med Curran

Public visualization

Viewing a saved revision (read-only)

1050c1a9d5d24292b2ceae89eaa88dfa

Meny tutorial med Curran

0 stars0🌍 Public
CChristian Magelssen
Last edited Oct 19, 2020
Created on Oct 19, 2020
Forked from React Starter

This example shows a simple web interface for choosing a pet from a dropdown menu. The React application renders a labeled select element with options for dog, cat, hamster, parrot, spider, and goldfish. Using the `Dropdown` component, which wraps a native HTML `<select>` element, the app manages its selected value through the `useState` hook and logs each selection to the console. The code relies on the React and ReactDOM libraries to handle state and DOM rendering, while the styles in the HTML provide enlarged text and select controls for better visibility.

AI-generated description

React Starter code.