{"version":"1.0","type":"rich","title":"Menus with React","description":"This example demonstrates a React-based dropdown menu for selecting a pet, with the selection state managed through `useState`. It shows how to build a reusable `Dropdown` component that accepts `options`, `selectedValue`, and an `onSelectedValueChange` callback. The app renders the dropdown using `ReactDOM.render`, logs the selected value to the console, and updates the menu selection dynamically. The code uses React 18.1.0 from a UMD build, with inline styles for font sizing and layout.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/1b9c6137285f4b77a78fd4b3cdf803e0?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}