-
-
Notifications
You must be signed in to change notification settings - Fork 470
TypeScript Lexer: JSX Node properties with dashes flagged as syntax errors #939
Copy link
Copy link
Closed
Labels
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
Custom JSX Node properties, like data-test-id are causing an error.
The lexer doesn't like the dashes.
import React from 'react';
export function Outro(): React.JSX.Element {
return (
<p
data-test-id="outro"
>Thanks for reading!</p>
);
}To Reproduce
Reactions are currently unavailable
