Menu in React
This example shows a simple pet selector menu built with React, displaying a dropdown list of six animal options. The interface presents a label and a select element, with the currently chosen pet highlighted. The app uses React hooks, specifically `useState`, to manage the selected value, starting with `Hamster` as the initial selection. The reusable `Dropdown` component receives the options, an ID, the current value, and a callback to update the selection. ReactDOM renders the application to the root element, with React and ReactDOM loaded from unpkg CDN.