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.
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.
Fixed it - An extension was interfering with the formatting, disabling it fixed the issue.
The extension was Babel ES6/ES7 by dzannotti.