Codiga has joined Datadog!

Read the Blog
Skip to main content

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 (type AstString): the tag of the HTML object