{"version":"1.0","type":"rich","title":"menus with react","description":"This example shows a simple interactive menu built with React. It displays a dropdown select element with six labeled options, and the currently selected value is printed to the console. The code uses React’s `useState` hook to manage the selected value, and a reusable `Dropdown` component that renders the `<select>` and `<option>` elements. Styling is applied via inline CSS in the HTML file, and the app is mounted to the DOM using `ReactDOM.render`. The component accepts `options`, `id`, `selectedValue`, and an `onSelectedValueChange` callback to handle user input.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/d16a17778595461d88e6db4b285bde7f?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}