{"version":"1.0","type":"rich","title":"Menus with React","description":"This example demonstrates a React-based interactive dropdown menu for selecting a pet from a list of six options, defaulting to hamster. The component uses React’s `useState` hook to manage the selected value and logs each choice to the console. The `Dropdown` component renders a native `<select>` element, mapping the provided options to `<option>` elements and handling changes via an `onChange` event. The code imports React and ReactDOM from UMD builds and renders the `App` component into a root div, displaying the dropdown with a styled label.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/f6110b4f9be14ba1a22f656a5140afed?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}