Closed doque closed 9 years ago
I'm trying to format this code, which includes JSX for a ReactJS component:
var CommentBox = React.createClass({ render: function() { return ( <div className = "commentBox"> Hello, world! I am a CommentBox.</div> ); } });
Pressing cmd+alt+f results in a popup with the message
cmd+alt+f
error: Error (2):Unable to format
There are no further errors in the console.
JSX is not valid javascript. The solution is to allow esformatter plugins, tracked in #40
I'm trying to format this code, which includes JSX for a ReactJS component:
Pressing
cmd+alt+f
results in a popup with the messageThere are no further errors in the console.