npm.io
1.0.2 • Published 7 years ago

simplified-timer

Licence
ISC
Version
1.0.2
Deps
0
Size
1 kB
Vulns
0
Weekly
0

Plug and play with timer

  • Start
  • Stop
  • Reset

It works on render props principle.

Directions to use


  import Timer from "simplified-timer"
  
  <Timer>
    {({ value, stopTimer, startTimer, resetTimer })=>{
      <App />
    }}
  </Timer>