Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

168
Vistas
React Button hyperlink doesn't work but only adds '?' to end of url when clicked

Hi I tried to make a hyperlink button in react that opens an email client(like Mail app in Windows) to send email to someone as an Ask an Advocate inquiry but all it does when linked is open the webapp with a "?" added on the end. Can anyone tell me why that is or how to fix it? (Code shown below for file)

import React, { Component } from "react";
import { useState } from "react";
import styles from "./Advocate.css"
import {Linking} from "react-native";

const Advocate = () => {

    const [title, setTitle] = useState('');


    //this creates a simple title and a form, which can take input and will be handled in the backend
    return <div className={"advocate-section"} id={"aaa"} >
        <h2>Ask an Advocate</h2>
        <form>
            <button onPress={() => Linking.openURL('mailto:mb20732@bristol.ac.uk?subject=Advocate Inquiry') }
                    title="mb20732@bristol.ac.uk" />
        </form>
    </div>
}

export default Advocate;

Thanks for the help!

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda