{"version":"1.0","type":"rich","title":"Menus with React","description":"This example demonstrates a pet-selection menu built with React, displaying a dropdown that lets users choose from six animals and updates a displayed value in response. It shows how a reusable `Dropdown` component manages state through React hooks, specifically `useState` for tracking the selected value and `onSelectedValueChange` to handle user input. The interface renders via `ReactDOM.render`, with options defined in a JavaScript array and styled using inline CSS. The code uses React 16.9.0 from a CDN, illustrating a controlled component pattern for interactive menu selection.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/0882daf0695b40e69c0fd09362eae3cf?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}