Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Menu with React

Public visualization

Viewing a saved revision (read-only)

1b61170f18504dc0b38dedec832b6405

Menu with React

0 stars0🌍 Public
TTaweewat Somboonpanyakul
Last edited Jun 13, 2021
Created on Jun 13, 2021
Forked from Select

This example shows a simple pet-selection menu built with React. It displays a dropdown list of animal options, with a hamster pre-selected, and the user’s current choice appears in the console. The interaction is handled by a reusable `Dropdown` component that maps over an array of option objects, while the app manages its selected value through React’s `useState` hook. The page is rendered via `ReactDOM.render`, and the code imports the `Dropdown` component, using React’s `onChange` event to update the selection state.

AI-generated description

Select