JSFiddle - React, Tailwind, and code Playground
HTML
<div>Click me</div>
JavaScript
jQuery.expr[':'].test = function(el){console.log('selector called on original object');}
var $sub = jQuery.sub();
$sub.expr[':'].test2 = function(el){console.log('this text never shows up!');}
jQuery('div').on('click', function(){
jQuery(':test'); //works
console.log('now the sub object');
$sub(':test'); //works
console.log("That's it, sub selector doesn't work");
jQuery(':test2'); //doesn't work
$sub(':test2'); //doesnt' work
});