{"version":"1.0","type":"rich","title":"Menus with React","description":"This example demonstrates a pet selector menu built with React, showing how a dropdown component manages state and user interaction. The interface displays a \"Choose a pet\" label alongside a dropdown menu containing six animal options, with a hamster preselected. The code uses React's `useState` hook to track the selected value, and ReactDOM to render the application to the page. The `Dropdown.js` component accepts options, an ID, and a selection handler, triggering state updates via the `onSelectedValueChange` callback.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/a9d87f48107e4271a097005bfa8baa3d?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}