vscode is my favorite editor, I have a code formatting problem with it. Here is my jsx code:
vscode
jsx
You did not wrote your file name, if it is an ".js" file, rename to ".jsx"