Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local scripts? #23

Open
Mobilpadde opened this issue Mar 22, 2018 · 1 comment
Open

Local scripts? #23

Mobilpadde opened this issue Mar 22, 2018 · 1 comment

Comments

@Mobilpadde
Copy link

Mobilpadde commented Mar 22, 2018

How do I load locally stored scripts? I need to integrate coinbase with my project, but they require a local script to be loaded, with an id at the script tag, thus I'm using react-load-script, but it's not working for local scripts.

Edit: I'm using parcel-js as my packager.

@Kestutis
Copy link

Kestutis commented May 30, 2018

have you just tried to load it locally? Because it worked normally for me:

<Script
    url='/libraries/venue/venue.js'
    onError={this.handleScriptError}
    onLoad={this.handleScriptLoad}
/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants