🌍 Public
Viewing a saved revision (read-only)
3594545ed57a4fdeae535820cfc3bbd2
Menus with React
A React app renders a dropdown menu to select a pet, with the chosen value displayed in the console. The interface uses React's `useState` hook to manage the selected option and passes it to a reusable `Dropdown` component built with native `<select>` and `<option>` elements. The visualization includes a yellow background circle, eyes, and a mouth drawn with `d3.arc`, though these shapes do not change in response to the dropdown selection.
AI-generated descriptionReact starter code.