Skip to main content
Public

Share visualization

Loading preview…

Fork of Menus with React

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fork of Menus with React

0
CChris Fritz
Last edited Jun 3, 2022
Created on Jun 6, 2022
Forked from Menus with React

This example demonstrates two interactive dropdown menus for selecting X and Y values from a fixed set of pet options. Built with React 16.9.0, it uses the `useState` hook to manage the selected value, which is shared by both dropdowns. The reusable `Dropdown` component renders a native `<select>` element, updating the state via `onSelectedValueChange` whenever the user changes a selection. The console logs the currently chosen value.

AI-generated description

Create interactive dropdown menus with React!

Comments

Sign in to join the discussion.

MIT Licensed