I started to learn react. A few minutes later messed up. I was looking for a setting and somehow I come where else where i selected a different choice(something like NodeJS)...now my problem is:
First Image
Second Image
First image is what I wrote. Second image is what it became after saving(CTRL S).
Third Image This third image is the changed original template...
I tried to reinstall VS Code and deleting the settings(user/json) file nothing has changed. Does anyone know how to fix this problem.
Any help is appreciated :P
CodePudding user response:
I got that error too try renaming js
files to jsx
or
CodePudding user response:
their is different formatter for react. but for instant fix just disable auto formating on save from vscode setting.