Menu Work
✓ Published0🌍 Public
This example demonstrates a dropdown menu for selecting a pet. The interface displays a "Choose a pet" label and a select element populated with six pet options, defaulting to 'hamster'. The selected value is logged to the console and updates the dropdown's state. It uses React with the `useState` hook and a custom `Dropdown` component that accepts options, a selected value, and a change handler, rendering the native HTML select element. The app is mounted to the DOM using `ReactDOM.render`.
AI-generated descriptionReact Starter code.
MIT Licensed