{"version":"1.0","type":"rich","title":"Menus with React","description":"This example shows an interactive dropdown menu for selecting a pet, with the chosen option displayed in a label. The interface is built with React’s `useState` hook to manage the selected value, while a custom `Dropdown` component renders the `<select>` element and its options. D3 is loaded but not directly used in the interaction logic, serving only as a dependency in the page setup. The code imports React and ReactDOM, maps over an array of pet options, and updates the selection state via the `onSelectedValueChange` callback.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/19bb380cc9294b0eaa70693a99c23ebf?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}