{"version":"1.0","type":"rich","title":"Menus with React","description":"This example shows a pet-selection interface with a large dropdown menu. It demonstrates React state management, where selecting an option from the menu updates the displayed value and logs the selection to the console. The code uses React’s `useState` hook to manage the selected value and ReactDOM’s `render` method to display the app. A reusable `Dropdown` component handles menu rendering, with options defined as an array of objects.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/5db20d52a3384f0c9627334f3c7e2698?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}