{"version":"1.0","type":"rich","title":"menus in react","description":"This example demonstrates a simple pet-selection dropdown built with React. It uses the `useState` hook to track the currently selected pet, initialized to \"cat,\" and updates the displayed choice whenever the user changes the dropdown. The `Dropdown` component maps over an array of pet options, rendering each as an `<option>` element within a `<select>` tag. The code relies on ReactDOM to render the app into the DOM, with styling applied via CSS classes.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/930673b5591f41dca62d930f584ed3d1?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}