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

How to use it? #31

Open
AzadAnsari35 opened this issue May 18, 2022 · 3 comments
Open

How to use it? #31

AzadAnsari35 opened this issue May 18, 2022 · 3 comments

Comments

@AzadAnsari35
Copy link

Hi, how to use it, can you give me an example? How can I currently replace my setInterval with libraries setInterval in reactjs?

@turuslan
Copy link
Owner

turuslan commented Jun 5, 2022

Hi.

There are two ways:

  1. Script tag
    • <script>...</script> or <script src="..."></script>.
    • Without async or defer.
    • Must go before any other scripts.
  2. Bundled
    • import "..." or require("...").
    • Put in entry point js file (depends on bundler/framework), before any other code.

@parteekcoder
Copy link

@turuslan Can you please share any example using import

@001110000100010
Copy link

I got initialisation succeeded message on my console. I used CDN to reference the script in my html, However, setTimeout still stops on my index.js. Can anyone provide a sample app with this?

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

4 participants