JSFiddle - React, Tailwind, and code Playground

by Amal Das

HTML

<p>

</p>

CSS

p:after{
  content:"text"
}

JavaScript

console.log(window.getComputedStyle(document.getElementsByTagName('p')[0],'after').content);