Fork of React Starter
✓ Published0🌍 Public
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 descriptionMIT Licensed