{"version":"1.0","type":"rich","title":"Dropdown in React","description":"This example demonstrates a dropdown menu component built with React, allowing users to select a pet from a list of five options such as Goldfish, Dog, and Hamster. The React `useState` hook manages the selected value, and the custom `Dropdown` component maps over the options array to render each `<option>` element. The `onChange` event updates the selected state, and the `selected` attribute highlights the current choice. The code uses React 18.2.0 and ReactDOM to render the interface.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/7de31fab8ff14e9690c467e00e354add?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}