{"version":"1.0","type":"rich","title":"Menus with React","description":"This example demonstrates a simple interactive form for selecting a pet from a dropdown menu, with the chosen value logged to the console. It shows how React manages controlled form state: the `Dropdown` component receives options, a selected value, and a change handler, and it renders a native `<select>` element whose `onChange` event triggers the state updater. The app uses React’s `useState` hook to track the selection, initializing it to “hamster.” The code relies on React 17 and ReactDOM for rendering, with plain CSS styling for large label and select text.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/cc1c572ea0ad4c37a6cf06940f4b4938?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}