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

210
Views
Cómo priorizar un botón de enlace en un div de enlace en React JS

Estoy creando un sitio y tengo algunos problemas con un botón, está dentro de un enlace div, pero cuando hago clic en el botón, me lleva al enlace del botón, me lleva al enlace div.

 import { Link } from "react-router-dom"; <Link to={'/seminovos/'+ carItem.name}> <div className="carItem"> <div className="carBackground"> <img src={image} alt=''/> </div> <h1 className="carName"> {name} </h1> <p> {year} - {km}</p> <p className="carPrice"> ${price} </p> <a className="consultarA" href="https://web.whatsapp.com/send?phone=**********" target="_blank"> <button className="contato"> Conversar com Vendedor </button> </a></div> </Link>

¿Cómo puedo hacer que este botón funcione?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Puedes usar event.stopPropagation() para hacer eso

about 4 years ago · Juan Pablo Isaza Report
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!