Fork of React Starter
✓ Published0🌍 Public
This example demonstrates a dropdown menu for selecting a pet, with the chosen value reflected in the select element’s highlighted option. It uses React’s `useState` hook to manage the selected value and a reusable `Dropdown` component that maps over an array of pet options. The component receives `options`, `onSelectedValueChange`, and `selectedValue` props, rendering a native HTML `<select>` element. The app updates the dropdown’s selection and logs the value to the console on change.
AI-generated descriptionReact Starter Code.
MIT Licensed