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

92
Views
¿Hay alguna forma de seguir mostrando onMouseEnter al intentar navegar a un submenú?

Tengo una aplicación con menú y submenú. Se supone que el submenú se muestra al ingresar con el mouse y debe permanecer en la pantalla para que pueda navegar hasta el submenú. estoy usando onMouseEnter y onMouseLeave

 import React, {useState} from "react"; export default function ShowButtonHover() { const [style, setStyle] = useState({display: 'none'}); return ( <div className="App"> <div style={{border: '1px solid gray', width: 300, height: 300, padding: 10, margin: 100}} onMouseEnter={e => { setStyle({display: 'block'}); }} onMouseLeave={e => { setStyle({display: 'none'}) }} > <p>Show Sub Menu</p> </div> <div style={style}> <div><a href='/sub-1'>Sub Menu 1</a></div> <div><a href='/sub-2'>Sub Menu 2</a></div> </div> </div> ); }

¿Hay alguna manera de hacer que la pantalla permanezca para que pueda elegir un submenú y cuando dejo el div principal, desaparece?

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!