JSFiddle - React, Tailwind, and code Playground

HTML

<div class="๐Ÿ™‚"></div>
<div class="๐Ÿ’”"></div>

CSS

div {
  background-color: #dddddd;
  padding: 10px;
  margin-top: 5px;
}



div.๐Ÿ™‚:before, div.๐Ÿ’”:before {
  content: "Class " attr(class) ": ";
}

div.๐Ÿ™‚:after {
  content: "๐Ÿ‘";  
}

div.๐Ÿ’”:after {
  content: "๐Ÿ˜ฌ";  
}