HTML Tag AST JavaScript Object
The HTML Tag
object matches a JavaScript HTML Tag as the one you have in JSX.
The astType
value for this node is htmltag
.
Code Pattern
This object captures <MyComponent>
, </MyComponent>
in the following code pattern.
return <MyComponent attr="val"></MyComponent>;
Attributes
tag
(typeAstString
): the tag of the HTML object