blueberryapps / react-load-script

React component that makes it easy to load 3rd party scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use 3rd script's function

cpdtzy opened this issue · comments

I had add 3rd script in my react files, and I want to use 3rd script's function in my react component, but it will be error about undefind.

You can use newly loaded script's function or variables with window prefix.

window.funcName()