From 13264843e7d5160deae3a94b7a066f2d8717c472 Mon Sep 17 00:00:00 2001 From: Clement Hoang Date: Wed, 11 Oct 2017 17:37:10 -0700 Subject: [PATCH] Update spec for putting JSXFragment inside attributes --- AST.md | 2 +- README.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AST.md b/AST.md index 8400fb8..7555620 100644 --- a/AST.md +++ b/AST.md @@ -95,7 +95,7 @@ Opening element ("tag") may contain attributes: interface JSXAttribute <: Node { type: "JSXAttribute"; name: JSXIdentifier | JSXNamespacedName; - value: Literal | JSXExpressionContainer | JSXElement | null; + value: Literal | JSXExpressionContainer | JSXElement | JSXFragment | null; } // This is already used by ES6 parsers, but not included diff --git a/README.md b/README.md index 4932bc2..684a104 100644 --- a/README.md +++ b/README.md @@ -116,6 +116,7 @@ JSXAttributeValue :
 - `'` JSXSingleStringCharactersopt `'` - `{` AssignmentExpression `}` - JSXElement +- JSXFragment JSXDoubleStringCharacters :