Skip to main content
Public

Share visualization

Loading preview…

Fork of React Starter

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 React Starter

0
Qqtrfx
Last edited Jun 18, 2023
Created on Jun 18, 2023
Forked from React Starter

This example demonstrates a dropdown menu for selecting a pet, with the chosen value reflected in the select element’s highlighted option. It uses React’s `useState` hook to manage the selected value and a reusable `Dropdown` component that maps over an array of pet options. The component receives `options`, `onSelectedValueChange`, and `selectedValue` props, rendering a native HTML `<select>` element. The app updates the dropdown’s selection and logs the value to the console on change.

AI-generated description

React Starter Code.

Comments

Sign in to join the discussion.

MIT Licensed