JSFiddle - React, Tailwind, and code Playground

by James Allardice

HTML

<span>I want to be wrapped in a div!</span>

JavaScript

$("<div>").insertBefore("span").append($("span"));