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

114
Visualizações
What is findDOMNode and it is deprecated in StrictMode in console?

I was trying to make a count up using react visibility sensor and react count up, but when I tried to set it up an error shows in the console. Is there a proper way to solve?

Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of VisibilitySensor which is inside StrictMode. Instead, add a ref directly to the element you want to reference.

My code is

<div className="App">
 <VisibilitySensor partialVisibility offset={{ bottom: 200 }}>
        {({ isVisible }) => (
          <div style={{ height: 100 }}>
            {isVisible ? <CountUp duration={5} start={0} end={1000} /> : null}
          </div>
        )}
      </VisibilitySensor>
</div>
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

There is an open issue on the react-visibility-sensor repo, but the whole project seems to be not maintained any longer (last commit was in 2019).

I'm not a user of the plugin, but some people suggest moving to react-intersection-observer as an alternative.

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