Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

dropdown

Public visualization

dropdown

0 stars1🌍 Public
Wwzhang88
Last edited Nov 23, 2021
Created on Nov 23, 2021

This example displays a dropdown menu populated with Pokémon names fetched from the PokéAPI, with the selection state tracked and logged. The app loads 649 results via `d3.json` and maps them into options for the `ReactDropdown` component from `react-dropdown-browser`. Once a user picks a name, the selected value is stored in React state and printed to the console. The interface uses SVG rendering and React's `useState` and `useEffect` hooks to manage asynchronous data loading and UI updates.

AI-generated description

test pokemon data

Comments

Sign in to join the discussion.

MIT Licensed