Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

511
Vistas
How can I implement 'drag to select' in React?

I am new to React and would like to highlight single adjacent letters in a grid of letters by dragging over them (i.e. hovering over them but with the mouse clicked).

The final result should look and feel like this: https://lovattspuzzles.com/online-puzzles-competitions/play-daily-word-search-puzzle-online/

By using onDragEnter={() => {} on each of the letters, I am able to generate the desired effect; however, the dragged element is then clipped to my mouse (see following screenshot).

onDragEnter

Is there any method to not show the dragged element from the screenshot? Is there a better method to implement 'drag to select' in React?

Thank you very much for your help!

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda