React Starter Menu
✓ Published0🌍 Public
This example shows a simple pet-selection interface built with React. It displays a dropdown menu labeled “Choose a pet” with options for dog, cat, hamster, parrot, spider, and goldfish. The selected value is tracked using React’s `useState` hook and logged to the console on every change. A custom `Dropdown` component wraps a native `<select>` element, receiving options, the current selected value, and an `onChange` handler via props. The app is rendered to the DOM using `ReactDOM.render`, with dropdown styling controlled by plain CSS.
AI-generated descriptionSmile Face
MIT Licensed