{"version":"1.0","type":"rich","title":"Menus using select elements in React (codeAlong)","description":"This example shows a React app that renders a pet-selection menu using HTML `<select>` elements. It displays a single labeled dropdown with six pet options (dog, cat, hamster, parrot, spider, goldfish), where the user can choose a value and the selected state updates via React's `useState` hook. The `DropDown` component maps over an `options` array to generate `<option>` elements, passing the selected value and an `onSelectedValueChange` callback. The code uses React 17 and ReactDOM, with styling applied via inline CSS in the HTML file.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/60f181039c954bf5ac83cc6e0fb3d351?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}