🌍 Public
Viewing a saved revision (read-only)
d75df1b41b5e4e4d8a64a9d2b3649046
Menus with Starter
This example demonstrates a simple dropdown menu interface built with React, displaying a list of pet options such as Dog, Cat, and Goldfish. The code defines a reusable `Dropdown` component that maps over an array of options to render `<option>` elements, while a second static `<select>` element shows a hardcoded menu. React 16.10.0 and ReactDOM are used via UMD builds to render the interface into the `#root` div. The example highlights basic component structure and controlled option rendering in a React application.
AI-generated descriptionReact starter code.
See also HTML Starter.