Add external javascript file to React.js app
问题 I'm having a little problem adding external javaScript file to my React App. I tried so many things but none of them worked. The last thing I did is: step#1 : creating JS file and create functions. step#2 : import the functions form my js file. step#3 : call the functions. The issue is when I run: npm start, everything work fine. But when I run: nom build, the script won't work! This is my js file that I created with exporting functions export function BackgroundMove() { $(document).ready