{"version":"1.0","type":"rich","title":"Menus with React","description":"This example demonstrates a simple pet-selection dropdown menu built with React. It shows how React state manages the currently selected option, with a custom `Dropdown` component that renders a `<select>` element and updates the selection via an `onSelectedValueChange` callback. The code uses React’s `useState` hook, `ReactDOM.render`, and JSX to bind the dropdown’s options from a hardcoded array. The current value is logged to the console on each change, but no further data visualization or external data source is included.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/90a684fd70fd4208acf6b555ae141268?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}