-
-
Notifications
You must be signed in to change notification settings - Fork 470
TypeScript Lexer: JSX Nodes with a comment flagged as syntax errors #940
Copy link
Copy link
Closed
Labels
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
JSX allows for Nodes to have in-line comments which start with // until the next new line.
import React from 'react';
export function Outro(): React.JSX.Element {
return (
<p
// This is a comment
>Thanks for reading!</p>
);
}To Reproduce
Reactions are currently unavailable