{"version":"1.0","type":"rich","title":"Menus With React","description":"This example shows a pet selector built with React, where a dropdown menu displays six pet options and the current selection is reflected in the interface. It demonstrates how React’s `useState` hook manages the selected value, while a reusable `Dropdown` component (defined with `props` for options, `id`, `selectedValue`, and `onSelectedValueChange`) renders a native `<select>` element. The code uses ReactDOM to mount the app to the `#root` element, with labels and select styled via CSS for large text.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/15065e73b0b04dc5abc8501a4197e4c5?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}