JSFiddle - React, Tailwind, and code Playground

JavaScript

var x = $('not_existing_element').after('<h2/>');
console.log(x)