{"version":"1.0","type":"rich","title":"Menus with React","description":"This example demonstrates a pet-selection interface built with React, showing how dropdown menus manage state and re-render dynamically. It uses React hooks (`useState`) to track the selected value, initialized to \"hamster,\" and passes it through a custom `Dropdown` component defined in `Dropdown.js`. The component maps over an array of pet options (goldfish, dog, cat, etc.) to generate `<option>` elements, triggering updates via the `onSelectedValueChange` callback. The page is styled with large typography and rendered into the DOM using `ReactDOM.render`.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/d528cd78007443fbaa578427e24d3913?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}