Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

169
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda