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

148
Visualizações
Embed Link In ReactToolTip with html true

In my React App I want to use a ReactTooltip around my component such that the content of the tooltip is some text with a link to another website. My component has a return like this:

  return (
    <>
      <div className="col-xs-6 col-sm-4" >
        <Link to={earnnestLink(deal)} target="_blank" data-tip={'abc<br /> def </br> ghi <a href="www.google.ca"/>'} >
            Request Escrow Funds
          </Link>
      </div>
      <ReactTooltip
        multiline
        html
        id="earnnest-link-tooltip"
        place="bottom"
        border
        effect="solid"
        type="light"
        className="custom-tooltip-large" />
    </>
  )

My ReactTooltip came from import ReactTooltip from 'react-tooltip'

But then my UI looks like this

So I have 2 questions:

  1. How do I get the link to www.google.ca show up properly? Note that the HTML for <br /> was rendered but the HTML for the link is not rendered.
  2. As soon as I move the cursor away from the text "Request Escrow Funds" into the tooltip with the intention to click on the embedded link, the tooltip disappears. I think it's because my cursor is outside of the <Link> component. How do I get it to stay there while I move the cursor into the tooltip?

Thanks!

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