🌍 Public
Viewing a saved revision (read-only)
8c1543f2975244cbabc5a4093c10c8fb
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