Attributes of an HTML element representation. A key-value collection where keys are attribute names and values are attribute values. Special reserved keys 'tag' and 'children' cannot be used as attributes.
{ * id: 'main', * class: 'container', * 'data-value': 123, * disabled: true * } Copy
{ * id: 'main', * class: 'container', * 'data-value': 123, * disabled: true * }
Optional
Attributes of an HTML element representation. A key-value collection where keys are attribute names and values are attribute values. Special reserved keys 'tag' and 'children' cannot be used as attributes.
Example