TypeScript: Support type arguments on JSX opening and self-closing tags (#7799)
This commit is contained in:
@@ -73,6 +73,7 @@ function spaceSeparator() {
|
||||
export function JSXOpeningElement(node: Object) {
|
||||
this.token("<");
|
||||
this.print(node.name, node);
|
||||
this.print(node.typeParameters, node); // TS
|
||||
if (node.attributes.length > 0) {
|
||||
this.space();
|
||||
this.printJoin(node.attributes, node, { separator: spaceSeparator });
|
||||
|
||||
Reference in New Issue
Block a user