Eclipse Javascript Editor not correctly recognizing string using Reactjs syntax
When I write jsx in the following format in the default Javascript editor, slash and grater than characters are interpreted as string. And when I hit Enter at the end, Eclipse automatically adds "+"
I am using Eclipse 4.3.0.
How to fix it?
+3
codez
source
to share
2 answers
Disclaimer I am the author of typescript.java
I suggest you install typescript.java 1.1.0 which provides JSX support inside Eclipse. It provides a JSX Editor with syntax coloring for JSX (and JavaScript):
Validation, hyperlink, hover, completion is done with the TypeScript tsserver:
+7
Angelo
source
to share
There seems to be no eclipse plugins yet to handle JSX syntax correctly in eclipse.
There are many other IDEs that support JSX:
-
Sublime text
-
WebStorm
-
Vim
-
Atom
-
IntelliJ IDEA
+2
sahlouls
source
to share