{"version":"1.0","type":"rich","title":"Menus with React","description":"This example demonstrates how to build an interactive dropdown menu using React. It shows a labeled select element with options for choosing a pet, and logs the selected value to the console. The code defines a reusable `Dropdown` React component that manages its state via the `useState` hook and renders an HTML `<select>` element with `<option>` children. The main `App` component initializes with the value “hamster” and updates the selection through the `onSelectedValueChange` handler. The project uses React 16.13.1 and ReactDOM for rendering.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/3f000d06e60448ebbe3de6326e4c6566?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}