{"version":"1.0","type":"rich","title":"Menus with React","description":"A React example demonstrates a dropdown menu for selecting a pet, with the chosen value displayed as the selected option. The code imports React and ReactDOM, using the `useState` hook to manage the selected value and a reusable `Dropdown` component that renders a `<select>` element. The options array provides five pet choices, and the `onSelectedValueChange` callback updates the state via `setSelectedValue`. The interface renders in the browser with custom CSS styling for the label and select elements.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/fa6d662bf5f54a15bb1e3cf7dffc4eaf?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}