Wednesday, 26 April 2017

ReactJS include or import custom or external javascript file

I have a very basic question regarding ReactJS and pretty much between being beginner and intermediate.

I have designed my web application UI in webflow and now developing the frontend application in ReactJS.

So, now I have two JS files called mordenizr.js and webflow.js which I have to import in to my ReactJS component and pages JSX files. I wanted to know How could I import external or custom JavaScript files like these in to ReactJS and they are in plain/obfuscated/minified JS and not in ES6 format.

PS: I have created the project using create-react-app so not able to change or see webpack & babel configuration too

Thank you.

Regards,

Rohit



via rohitpaniker

No comments:

Post a Comment