{"version":"1.0","type":"rich","title":"Menus with React","description":"This example shows a React-based dropdown menu for selecting a pet, with the current choice logged to the console. It demonstrates how React state and props manage a controlled `<select>` element through a reusable `Dropdown` component, which maps over an options array. The code uses React’s `useState` and `ReactDOM.render`, with no direct d3 APIs; instead, D3.js is loaded via CDN but remains unused except as a dependency. The styling uses large fonts for the label and select, with smaller font for options.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/e0147565339b4f78922849af55af212d?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}