JSFiddle - React, Tailwind, and code Playground

JavaScript

var ajax_response='var message="Hello World!";';

var sc=document.createElement('script');
sc.text=ajax_response;

document.body.appendChild(sc);

alert(message);