JSFiddle - React, Tailwind, and code Playground

by suit

HTML

<h3>generated content</h3>

CSS

h3:after {
   content: ' rocks!';
 }

JavaScript

var h3       = document.querySelector('h3'), 
      result   = getComputedStyle(h3, ':after').content;
 
  console.log('the generated content is: ', result); // returns ' rocks!'