JSFiddle - React, Tailwind, and code Playground

JavaScript

var teste = (function () {/*
   <div>
     <h1>Teste</h1>
    </div>        
*/}).toString().match(/[^]*\/\*([^]*)\*\/\}$/)[1];

alert(teste);