HackTimer icon indicating copy to clipboard operation
HackTimer copied to clipboard

How to use it?

Open AzadAnsari35 opened this issue 3 years ago • 3 comments

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

AzadAnsari35 avatar May 18 '22 19:05 AzadAnsari35

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.

turuslan avatar Jun 05 '22 08:06 turuslan

@turuslan Can you please share any example using import

parteekcoder avatar Oct 25 '23 04:10 parteekcoder

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?

001110000100010 avatar Feb 28 '24 08:02 001110000100010