🌍 Public
Viewing a saved revision (read-only)
c566f1566d0b40f985d21653c3c17592
Menus with React
This example shows a React application that renders a dropdown menu for selecting a pet from a fixed list of options, with the selected value displayed in the browser console. The `Dropdown` component uses a native HTML `<select>` element and maps over the options array to generate `<option>` elements. State management relies on React's `useState` hook, while `ReactDOM.render` mounts the app to the DOM. The styling sets large font sizes for the label and dropdown, demonstrating a basic interactive form element built with React and vanilla HTML.
AI-generated descriptionReact Starter