{"version":"1.0","type":"rich","title":"Dropdown menu with react and d3","description":"This example demonstrates a pet-selector dropdown menu that displays a list of six animal options and updates a selected value in real time as the user makes a choice. The visualization is built using React's `useState` hook to manage the selected value and a custom `Dropdown` component that renders an HTML `<select>` element. The code imports React and ReactDOM, and the dropdown’s options are defined in an array of objects with `value` and `label` properties. No D3 library is used; the example relies purely on React’s component model and event handling via `onChange`.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/7c33e06f687d45979f7ebca50d032702?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}