{"version":"1.0","type":"rich","title":"Menus with React","description":"This example demonstrates interactive dropdown menus built with React. It shows a pet-selection interface with six options, where the chosen value is logged to the console and reflected in the selected option. The code uses React’s `useState` hook to manage the selected value and a reusable `Dropdown` component that renders a native HTML `<select>` element. React’s `onChange` event handler updates the state, while the component receives `options`, an `id`, and callbacks as props. The example runs in a browser using the React and ReactDOM UMD builds via unpkg.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/50663408bf8148398ae5f3da823079c4?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}