JSFiddle - React, Tailwind, and code Playground

by rpflorence

HTML

<p id="el">I'm an only child</p>

JavaScript

var next = $('#el').next();
if(!next[0]) console.log('no sibling');