Skip to main content
100%

Fork of React Starter

✓ Published0🌍 Public
Qqtrfx
Last edited Jun 18, 2023
Created on Jun 18, 2023
Forked from React Starter

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 description

React Starter Code.

MIT Licensed

Similar vizzes