JSFiddle - React, Tailwind, and code Playground
HTML
<div id="parent"><div id="child"></div></div>
JavaScript
$('#parent').find('#notExists').after('').end().find('#child').append('<b>hello</b>');
<div id="parent"><div id="child"></div></div>
$('#parent').find('#notExists').after('').end().find('#child').append('<b>hello</b>');