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

313
Visualizações
Formatting a js script for React (understand the logic)

If you access this website, you'll see letters gravitating around the cursor:

http://etiennechartrand.com/

This script is not mine. I picked it from the internet and it works like a charm. I'm now trying to understand it and format it for a react application.

What I've done so far: cleaned the code and breakdown this code into functions. I also tested the mouseEvent, it works as expected. I think the problem comes therefore from initialising the main function as well as the eventListener.

Here's a codesandbox: https://codesandbox.io/embed/nostalgic-cherry-i2qtx?fontsize=14&hidenavigation=1&theme=dark

Thanks so much in advance.

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