Passing electron index.js variable to a react component

I have a variable index.js (app > lib > index.js) which is a variable related to electron (im using url protocol with parameters to open modeler). Is there a way i can use to pass this variable to a react component (for example to show the variable value as a text inside the modeler)?