dv.30 - menus w/ react
✓ Published0🌍 Public
A pet-selection interface shows a dropdown menu listing six animals—dog, cat, hamster, parrot, spider, and goldfish—with the parrot preselected. A React state variable stores the current choice, and selecting a new value logs it to the console. The custom `Dropdown` component uses React’s `useState`, `onChange`, and `defaultValue` attributes, while D3 v5 and ReactDOM 16.9 are loaded via unpkg, with the menu styled through global CSS.
AI-generated descriptionreact starter code
MIT Licensed