JSFiddle - React, Tailwind, and code Playground

JavaScript

var arr = ['<div>pash</div>', '<div>pash</div>'];
try{
    $.each(arr, function(i, v){
        $('body').append(v)
    })
}
catch(e){
    $('body').html(e.message)
}