{"version":"1.0","type":"rich","title":"Menus with React","description":"This example demonstrates a simple pet-selector interface built with React, where a user can choose a pet from a dropdown menu and the selection is logged to the console. The page starts with the hamster option preselected. The code defines a reusable `Dropdown` component that renders an HTML `<select>` element, mapping over a hardcoded list of options. State management is handled through React’s `useState` hook, with the current value passed back via an `onSelectedValueChange` callback. It utilizes React 16.9 and ReactDOM directly from unpkg CDN.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/5369878bf92d443ab38d62ee88f224b2?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}