JSFiddle - React, Tailwind, and code Playground

JavaScript

//lets hijack the "$"
$ = (function() {
    return {
        libName: "some other library using $"
    }
}());

//create a closure for us to use "$"
(function($) {

    //we can now use the $ safely in this closure  
    $('body').text('hello world! in the body!');

    //let's check "$" in here
    console.log('in here, "$" is jQuery:', $);

}(jQuery));

//let's check "$" out here
console.log('out here, "$" is:', $);