JSFiddle - React, Tailwind, and code Playground

HTML

<code> A </code>
<code> B </code>
<code> C </code>

JavaScript

$('code').replaceWith(function(i,html) {
  return $('<pre />').html(html);
});

$('pre').css('color','red');