🌍 Public
Viewing a saved revision (read-only)
7ce43f5c7f314991aa242d4a30691ecb
Menus with React
This example shows a React-based menu system for selecting a pet from a dropdown list. The interface displays a label and a select element populated with five options, with the initial value set to “parrot.” The code uses React’s `useState` hook to manage the selected value and a reusable `Dropdown` component that maps over the options array. ReactDOM renders the App component into the root div, while the HTML loads React 16.9.0 from unpkg CDNs.
AI-generated descriptionReact Starter Code.