Skip to main content
Public

Share visualization

Loading preview…

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

Menus with React

0
SShuyu Zheng
Last edited Dec 27, 2020
Created on Dec 25, 2020
Forked from React start code

A React app renders a dropdown menu to select a pet, with the chosen value displayed in the console. The interface uses React's `useState` hook to manage the selected option and passes it to a reusable `Dropdown` component built with native `<select>` and `<option>` elements. The visualization includes a yellow background circle, eyes, and a mouth drawn with `d3.arc`, though these shapes do not change in response to the dropdown selection.

AI-generated description

React starter code.

Comments

Sign in to join the discussion.

MIT Licensed