How to bind external IME to react app?

I want to bind my input and textarea to an external app. Now, every time I open the page with input, I need to manually input this code into console so that I can use the custom IME

$(‘input, textarea, [contenteditable]’).bindIME({
talchir: “á á ªá ¢á ¶á á ¯á á ¨ á ªá ¢á ´á ¢á ¬á ¦”,
candidatePath: “http://mongol-bichig.top/ime/
});

So how can I integrate this code with my jsx file? Or any other solution is appreciated. Thanks in advance.