{"version":"1.0","type":"rich","title":"Menus with React","description":"A dropdown menu for selecting a pet uses React and ReactDOM to manage its state. The example defines a reusable `Dropdown` component that accepts options, an id, a selected value, and a callback. It displays a list of pets from an array of objects. The app initializes with \"hamster\" as the selected value and logs each new choice to the console via `useState`. The interface relies on a `<select>` element, with a custom prompt for an empty selection.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/fc8d66d1425a405f87fab59a2c8aa0bc?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}