{"version":"1.0","type":"rich","title":"Menus with React","description":"This example shows a React-based dropdown menu for selecting a pet from a hardcoded list of six options, with the current selection displayed via a controlled component. The `Dropdown.js` file defines a reusable `<select>` element that maps over the options array, setting each option’s `selected` attribute based on the incoming `selectedValue` prop. State is managed with React’s `useState` hook in `index.js`, where `setSelectedValue` updates the selection on every change event. The UI is rendered into the DOM using `ReactDOM.render`, with styling applied via inline CSS in `index.html`. The code relies on React 16.9 and ReactDOM, but no external data source or charting library is involved.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/83317742bc6e4182a554718accc939dc?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}