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

87
Views
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 answers
Answer question

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