{"version":"1.0","type":"rich","title":"Menu with Reat State","description":"This example demonstrates a React dropdown menu that manages its own selection state. The page renders a large \"Choose a pet\" label alongside a select element populated with five pet options, defaulting to \"parrot.\" The `Dropdown` component receives the options, a selected value, and a change handler, while the parent `App` component uses React's `useState` hook to track the current selection and pass the updated value back through `onSelectedValueChange`. The code uses React 16.9 and ReactDOM, with inline styling for oversized text.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/97edac9e7d5246ed9697b7c93684f495?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}