JSFiddle - React, Tailwind, and code Playground

HTML

<h1>hello world</h1>
<button onclick="blockify()">This is a test</button>

CSS

h1 {font-size:300%}

JavaScript

$(document).ready(function(){
   $("button").click(function(event){
     var old_content = $("h1").html();
     var new_content = old_content.replace(/([eowr])/g, '▄').replace(/([hld])/g, '█');
     $("h1").html(new_content);
   });
 });