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

88
Vistas
I lose the pretty colouring on my code when I use optional chaining

Can anyone tell me why I am losing the code formatting when I use optional chaining in my JSX? There is no error thrown and the code runs, it just doesn't like it.

Shows div tags not highlighted in the correct colour

As shown above, everything after the brackets is now blue where it should be red. Currently using up to date create-react-app, ESLint, prettier and using VSCode as my development environment.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Fixed it - An extension was interfering with the formatting, disabling it fixed the issue.

The extension was Babel ES6/ES7 by dzannotti.

about 4 years ago · Juan Pablo Isaza Denunciar
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