{"version":"1.0","type":"rich","title":"Menus with React","description":"This example demonstrates a React-based dropdown menu for selecting a pet from a list of six options. The chosen value is logged to the console and passed as a prop to a custom `Dropdown` component, which renders a native HTML `<select>` element. The component manages its state using React’s `useState` hook and updates the selection via an `onSelectedValueChange` callback. The code uses React 16.9 and ReactDOM, with the app mounted into a root div.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/98ca2f33de6a4ff393f608051f5dd93f?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}