Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

158
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!