{"version":"1.0","type":"rich","title":"Menus with React","description":"A React example demonstrates building a dropdown menu using the `useState` hook to manage selected values. The app renders a list of pet options, with the initial selection set to \"Rabbit\". It uses the `Dropdown` component, a reusable `<select>` element that takes `options`, `id`, `selectedValue`, and `onSelectedValueChange` props. The code relies on React's `ReactDOM` for rendering and the `useState` hook for state management, with the selected value logged to the console.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/b24b4278b12c44c7a699276340b517e8?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}