Cristian Muscalu Cristian Muscalu - 2 months ago 13
React JSX Question

How to make VSCode play nice with React syntax?

I installed all recommended extensions, still VSCode won't recognize any React syntax.

What must i do to make VSCode play nice with React (js / jsx) syntax?

enter image description here

Answer Source

VS Code has built-in support for JSX and TSX. You do not need to install any extensions unless you want additional functionality

As the OP noted, the problem was one of their extensions was inserting spaces around the tags. I suspect it was the js css html formatter extensions since this has caused problem for people in the past