Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of React Starter

Public visualization

Fork of React Starter

0 stars0🌍 Public
BbeauMarko
Last edited Jan 28, 2021
Created on Jan 28, 2021
Forked from React Starter

This example shows a simple pet-selection interface with a dropdown menu. Built using the React framework, the app renders a static list of six pet options—goldfish, dog, cat, hamster, parrot, and spider—with the hamster pre-selected. The code defines a reusable `Dropdown` component and manages its state with React's `useState` hook. The interface uses plain HTML `<select>` and `<option>` elements, styled with large fonts via CSS, and logs the chosen value to the browser console.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed