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

245
Views
¿Funciona el cursor cuando enciendo devtools pero no funciona cuando apago devtools?

cuando paso el cursor por la imagen cuando devtools no se enciende, no funciona, pero cuando abro cuando devtools y paso el mouse de nuevo. Finalmente funciono?? He estado intentando en un navegador diferente pero ocurre el mismo problema, todos me ayudan a resolver esto. Ocurrió cuando usé setTimeout y clearTimeout en la función de diferencia, sería bueno si pudiera ayudar a resolver esto o la idea de escribir código de diferentes maneras.

 const handleHover = () => { //set time out here setHandleDelay(setTimeout(() => { setHover(true) }, 1000 )) } const handleNotHover = () => { //i want to clear time out here when it not hover clearTimeout(handleDelay) setHover(false) } return ( <div key={movie.id} onMouseOver={() => handleHover()} onmouseover{() => handleNotHover()}> <div>...</div> )
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Gracias a todos, ya he encontrado la solución. Es estúpido de mi parte por error en el evento onMouseOver y onMouseEnter.

Era mejor usar onMouseEnter y onMouseLeave cuando pasas el mouse sobre un elemento en Reactjs

 <div onMouseEnter={() => handleHover()} onMouseLeave={() => handleNotHover()} />
about 4 years ago · Juan Pablo Isaza Report
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!