JSFiddle - React, Tailwind, and code Playground
by Artem
HTML
<article></article>
CSS
h2::after{
content: 'added';
}
JavaScript
var el = document.createElement('h2', 'isAttribute');
var el2 = document.createElement('h2');
document.getElementsByTagName('article')[0].appendChild(el);
console.log(el.getAttribute('is'));