{"version":"1.0","type":"rich","title":"Menus with React","description":"This example demonstrates a pet-selection menu built with React and a reusable Dropdown component. It shows how React state manages the chosen option, displaying a label and a styled `<select>` element. The code uses React’s `useState` hook to track the selected value, initializing it to \"hamster,\" and passes options as an array of value-label pairs to the Dropdown component. ReactDOM renders the App to the DOM, while the Dropdown’s `onChange` event updates state via a callback prop.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/7a592eb4d1d7498299909ec671959297?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}