Copy link to clipboard
Copied
I'm currently working in CEP panel and I have a JSX file.
I'm wondering is there away I can make an ajax call or axios cal from with in this jsx?
If so how would I import jquery into it for the ajax call or require the axios module? Is that even possible?
Copy link to clipboard
Copied
After digging into this I guess it's not possible. The way I'm seeing to do it is to run it on the js side and then pass any corresponding data to the JSX as a json object.
Copy link to clipboard
Copied
You guessed it right that it won't be possible out of the box on the jsx side. Some points with noting are
So as you rightly guessed the recommended way would be making these calls on the js side and then so it to jsx side
-Manan