{"version":"1.0","type":"rich","title":"Menus with React","description":"This example shows a pet-selection menu built with React. It presents a dropdown list of six animal options and displays the currently chosen value in the browser console. The code defines a reusable `Dropdown` component that renders an HTML `<select>` element, mapping each option’s value and label. The main `App` component manages the selected state using `useState` and passes the change handler to update it, with React 18 rendering the interface into the root `div`.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/eadc5dc1433e405da0cced932eac5df4?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}