{"version":"1.0","type":"rich","title":"React Menus","description":"This example shows a React application that uses a dropdown menu to select a pet from a list of six options, displaying the chosen value in the browser’s console. It demonstrates a reusable `Dropdown` component that receives `options`, `id`, `selectedValue`, and `onSelectedValueChange` props, using React’s `useState` hook to manage the selection state. The code builds the dropdown from an array of value-label pairs and uses React’s `onChange` event to update the state. It relies on React 16.14 and ReactDOM 17.0.1 to render the UI.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/f0b3d4eb1dee443abc5c04ec0cdc732d?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}