Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Menu com React

Public visualization

Menu com React

0 stars0🌍 Public
Ssergiofco
Last edited Feb 18, 2023
Created on Feb 18, 2023
Forked from React Starter

This example shows a simple interactive menu built with React, where a user can choose between two display options ("junto" or "separado") via a dropdown selector. The selected value is stored in React state using the `useState` hook and logged to the console, while the `Dropdown` component renders a native HTML `<select>` element and propagates changes through a callback. The code uses ReactDOM to mount the app, and relies on React 16.13.1 and ReactDOM from unpkg CDN. No external visualization library is involved; the focus is on state-driven UI updates.

AI-generated description

React Starter code.

Comments

Sign in to join the discussion.

MIT Licensed