JSFiddle - React, Tailwind, and code Playground

HTML

<div id='test' />

JavaScript

$ = function(jQuery) { 
	return function(pars) { 
    var result = jQuery(pars);
    if (result.length==0) console.log('selector has no results',result.selector);
    return result;
  }
 }($);

$('#test1');
//$('#test');