{"version":"1.0","type":"rich","title":"Menus with React","description":"This example demonstrates a React-based dropdown menu for selecting a pet, with the chosen value logged to the console and reflected in the selected option. It uses the `useState` hook to manage the selected value and a reusable `Dropdown` component that renders a `<select>` element. The code integrates React 17 and D3 v7 via CDN, with a custom `onSelectedValueChange` callback to update state. The interface includes a labeled dropdown with options for dog, cat, hamster, parrot, spider, and goldfish, styled with large text for readability.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/93c47e1dd2e84434a39aea7770e90c66?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}