{"version":"1.0","type":"rich","title":"Menus with React","description":"This example demonstrates how to build interactive dropdown menus using React, showing a pet selection interface that updates its state as the user chooses an option. The code uses React’s `useState` hook to manage the selected value and a custom `Dropdown` component that renders a native HTML `<select>` element. It leverages ReactDOM’s `render` method to mount the app, with options defined as a static array of pet objects. The example highlights React’s component-based approach for handling user input and state management without external visualization libraries.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/b030561750ed4150aca134a16a24bdea?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}