{"version":"1.0","type":"rich","title":"23. Menus with React","description":"This example demonstrates a React-based dropdown menu for selecting a pet from a list of six options, with the chosen value displayed in the browser console. It shows how controlled form inputs manage state in React: the `Dropdown` component renders a `<select>` element, and the `useState` hook in the main `App` component tracks the selected value. The code uses ReactDOM to mount the application, and the dropdown’s `onChange` event triggers a state update via the passed `onSelectedValueChange` callback.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/651d75855ce24f59b437bfc97148f4b8?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}