diff --git a/README.md b/README.md index e195e25..25bd918 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ __Elements__ JSXElement :
 - JSXSelfClosingElement
 -- JSXOpeningElement JSXChildrenopt JSXClosingElement +- JSXOpeningElement JSXChildrenopt JSXClosingElement (names of JSXOpeningElement and JSXClosingElement should match) JSXSelfClosingElement : @@ -88,14 +88,19 @@ JSXMemberExpression : __Attributes__ -JSXAttributes :
 +JSXAttributes : -- JSXSpreadAttribute JSXAttributesopt +- `{` JSXAttributesShorthand `}` JSXAttributesopt - JSXAttribute JSXAttributesopt -JSXSpreadAttribute : +JSXAttributesShorthand : -- `{` `...` AssignmentExpression `}` +- JSXAttributeShorthand JSXAttributesShorthandopt + +JSXAttributeShorthand : + +- `...` AssignmentExpression `,`opt +- Identifier `,`opt JSXAttribute :