{"version":"1.0","type":"rich","title":"Menus with React","description":"This example shows how to build interactive dropdown menus using React’s `useState` hook to manage selected values. It renders a labeled `<select>` element with four car options (Volvo, Saab, Mercedes, Audi) and updates the displayed choice when the user changes the selection. The code imports `createRoot` from `react-dom` and defines a reusable `Dropdown` component that receives `options`, `selectedValue`, and `onSelectedValueChange` callbacks. React 18.2.0 loads from a CDN, with styling applied through plain CSS in the HTML file.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/cef9994995954732b3ec91c2ac1c0538?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}