{"version":"1.0","type":"rich","title":"Menus with React","description":"This example shows a React-based pet selector with a dropdown menu, where users choose from six animal options. A label and select element display the current selection, which updates in real time via React's `useState` hook. The code defines a reusable `Dropdown` component that maps over an options array to generate select elements, using `onSelectedValueChange` to handle changes and `selectedValue` to mark the active choice. The app uses `ReactDOM.render` to mount the component to the DOM, with the selected value logged to the console on each update.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/b1186d6c8b624fdfac11d627f770be2c?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}