{"version":"1.0","type":"rich","title":"Menus with React example","description":"A React application demonstrates a controlled dropdown menu for selecting a pet, with the chosen value displayed in a label. The code uses React's `useState` hook to manage the selected state and a reusable `Dropdown` component that renders an HTML `<select>` element with `onChange` event handling. Options come from a static array of pet name-value pairs, and the interface is rendered via `ReactDOM.render` into a root div.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/c7f35050ebd04a6a88cdc9bcb38e8370?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}