{"version":"1.0","type":"rich","title":"Menus with React","description":"This example demonstrates a simple pet-selection interface built with React, featuring a dropdown menu that allows users to choose among several pet options. The main App component maintains the current selection’s state, and the reusable Dropdown component renders a native HTML `<select>` element, mapping over the provided options array to generate `<option>` elements. The code uses React’s `useState` hook for state management and `ReactDOM.render` to mount the app to the DOM, with the dropdown’s change events triggering state updates. The interaction is minimal, focusing on controlled component composition and state handling.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/76616ab73c704cb2a8441ae14705fcb7?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}