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

281
Visualizações
Want to add data-* attribute in a div which will be used by third party JS lib React Next Js
const speed :string =`{"speed": 0.2}`

<div className="section jarallax h-100vh"  data-jarallax={speed} 
    style={{backgroundImage: "url('/images/header-bg.jpg')"}} 
    id="home">
</div>

<Script src="./js/parallax.js"  strategy="beforeInteractive" /> 

It throws an Error: Hydration failed because the initial UI does not match what was rendered on the server.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

The error is thrown because there is a mismatch between the conponents that are affected by server-side rendering and the rest of your UI. what you could try is to remove the beforeactive attribute in the script tag.

If that doesn't help, please visit this link: https://nextjs.org/docs/messages/react-hydration-error

about 4 years ago · Juan Pablo Isaza Relatório
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