{"version":"1.0","type":"rich","title":"Menus with React","description":"This example shows a pet-selection dropdown menu built with React. The interface displays a labeled \"Choose a pet\" menu with options for dog, cat, hamster, parrot, spider, and goldfish, defaulting to hamster. The code uses React's `useState` hook to track the selected value, and a reusable `Dropdown` component that maps over the options array to render native HTML `<select>` and `<option>` elements. The component updates the state via an `onSelectedValueChange` callback, with `ReactDOM.render` mounting the app into the root div.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/a697b4737b2c4bda823cb896beadcb7f?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}