JSFiddle - React, Tailwind, and code Playground

JavaScript

function testa() {
   jQuery.test = {data: 1, data2: 2};
}

testa()

alert(jQuery.test.data  + "\n" + jQuery.test.data2);