score:0

<select required className="form-select" onChange={props.idRestauranteEscolhido}>
        <option value="">Escolha um restaurante</option>
        {
            props.restaurantes.map((opcao) => {
                return(
        <option key={opcao.idRestaurante} value={opcao.idRestaurante}>
            {opcao.nomeRestaurante}
        </option>
                ) 
    })
    }    

Related Query

More Query from same tag