Skip to content

useTimer 0.1.0 view source

function useTimer(
  scope: Fusion.Scope,
  initial: number?
): Timer

Creates a timer that can be used to track a value over time.


Parameters

scope : Fusion.Scope

The scope to store cleanup tasks.

initial : number?

The initial value of the timer.


Returns -> Timer

A timer object.


Example Usage

-- TODO: write example