Problem with apostrophes in JSX code


See attached screenshot.
This is working react es6 code. I have an element in there with text in it and in the text there’s an apostrophe.

Is this a bug or am I doing things wrong?


Probably the language-javascript package doesn’t support JSX formatting. might provide better results.


Uh! I just opened the file again to test something and now it works.


Note. I did not install anything to make it work. I already had react installed as a package.