You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The //<Test/> line is parsed into the following AST:
But a double slash in JSX shouldn't have any special interpretation, it should just be a text node and the <Test/> element should be parsed into a jsx_element.
The text was updated successfully, but these errors were encountered:
mkrause
changed the title
A double slash in a JSX input snippet seems to be parsed as a comment
A double slash in a JSX input snippet causes the entire line to be parsed as jsx_textJan 27, 2025
Studio link: https://app.grit.io/studio?key=O3E0XN_U5icS3NAfyq-Jh
Given this input snippet:
The
//<Test/>
line is parsed into the following AST:But a double slash in JSX shouldn't have any special interpretation, it should just be a text node and the
<Test/>
element should be parsed into ajsx_element
.The text was updated successfully, but these errors were encountered: