As the arrow shows .. everything after the closed fragment comes in the same weird color, at the beginning I thought it might be a theme issue but then I recognized that it is not. I really need a solution for this. I'm new to react by the way
I thought it might be a theme issue but then I recognized that it is not. I really need a solution for this.

I would assume that it's because the extension of your file is
.js, and by default the language that VS Code uses for.jsfiles isjavascript.If you can't change the extension to
.jsxfor whatever reason, you could set up your VS Code to to use thejavascriptreactlanguage for.jsfiles by adding the following to your settings JSON:However, if this was indeed the solution, I would have guessed that fragments weren't your only problem, but let me know if this resolves it.