A very simple but efficient select react component
It is a dropdown menu component. When you click on it, a menu appears. From that menu, you choose an option, it will update the button.
npm install select-react-component
import { Select } from "select-react-component"
The list of items of your dropdown menu is an array of data. So if you want to create your list of items, you will have write your data as follow: data={[array]}
If you want to display a default value, you just need to give to value the desired value: it could be a string or the first data of your array: value={[array][0]}
Example: You have create a list of pokemon, so the user can choose his/her first pokemon. Let's say you have choice between three pokemons only (yeah, no pikachu. Back to Green/Blue/Red versions of pokemon). Your list will be: Bulbasaur, Charmander, Squirtle
const pokemonList = ["Bulbasaur", "Charmander", "Squirtle"];
<Select
data={pokemonList}
value={pokemonList[0]} />