{"version":"1.0","type":"rich","title":"Menus With React","description":"This example shows a React application that renders a simple dropdown menu for selecting a pet from a list of six options (dog, cat, hamster, parrot, spider, goldfish). The current selection is logged to the console and displayed as the menu’s default value. The code uses `useState` for state management, a custom `Dropdown` component built with React’s `select` and `option` elements, and ReactDOM to render the app into the DOM. The dropdown updates its selected value dynamically through an `onSelectedValueChange` callback.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/280f4aa3315840e5aa3e4be4f3d4f2a3?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}