JSFiddle - React, Tailwind, and code Playground

by Andrey7287

HTML

<p>90</p>

CSS

p.hasprice:before {
  content: '~';
}

p.hasprice:after {
  content: '$';
}

JavaScript

var p = document.querySelector('p');
p.classList.add('hasprice');