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?

Eclipse string problem

+3


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):

JSX editor



Validation, hyperlink, hover, completion is done with the TypeScript tsserver:

JSX validation

+7


source


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


source







All Articles