Menus
✓ Published0🌍 Public
This example shows a simple pet-selection interface with a dropdown menu. The App component uses React’s `useState` hook to track the chosen pet, initializing with “hamster” and logging each selection to the console. A reusable `Dropdown` component renders a native `<select>` element with options for six animals. The `bundle.js` file bundles the React code, while the page loads React and ReactDOM from unpkg and renders the interface into the `#root` div. Styling scales the label and select font to 4em for visibility.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed