Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Menu Work

Public visualization

Menu Work

0 stars0🌍 Public
AAndres de la Garza
Last edited Mar 10, 2021
Created on Mar 10, 2021
Forked from React Starter

This example demonstrates a dropdown menu for selecting a pet. The interface displays a "Choose a pet" label and a select element populated with six pet options, defaulting to 'hamster'. The selected value is logged to the console and updates the dropdown's state. It uses React with the `useState` hook and a custom `Dropdown` component that accepts options, a selected value, and a change handler, rendering the native HTML select element. The app is mounted to the DOM using `ReactDOM.render`.

AI-generated description

React Starter code.

Comments

Sign in to join the discussion.

MIT Licensed