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

312
Views
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
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!