Skip to main content
100%

React Starter Menu

✓ Published0🌍 Public
AAmir
Last edited Mar 2, 2021
Created on Mar 2, 2021
Forked from React Starter

This example shows a simple pet-selection interface built with React. It displays a dropdown menu labeled “Choose a pet” with options for dog, cat, hamster, parrot, spider, and goldfish. The selected value is tracked using React’s `useState` hook and logged to the console on every change. A custom `Dropdown` component wraps a native `<select>` element, receiving options, the current selected value, and an `onChange` handler via props. The app is rendered to the DOM using `ReactDOM.render`, with dropdown styling controlled by plain CSS.

AI-generated description

Smile Face

MIT Licensed

Similar vizzes