{"version":"1.0","type":"rich","title":"Menus with React","description":"This example shows a React component for selecting a pet from a dropdown menu, with the chosen value logged to the console. It uses React’s `useState` hook to manage the selected option and a reusable `Dropdown` component that renders a native HTML `<select>` element. The dropdown maps over an array of pet objects, setting the `selected` attribute based on the current state value, and calls `onSelectedValueChange` on user input to update that state. The app is rendered into the DOM with `ReactDOM.render`.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/4a67d3f00c1340478619678cfd51510f?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}