{"version":"1.0","type":"rich","title":"Menus with React","description":"This example demonstrates a simple pet-selection menu built with React, showing how a dropdown component manages and displays a chosen value. The app uses the `useState` hook to track the selected pet, initializing it to `hamster`, and renders a `Dropdown` component that maps over a static array of pet options. The dropdown fires `onSelectedValueChange` on user interaction, updating the state and logging each selection to the console. The code relies on React 17 and ReactDOM to render the interface, with a plain HTML `<select>` element styled via CSS.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/010f2566e6c445c281fc491370be5b1d?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}