hooks

use-interval

A start/stop-able setInterval as a hook — pass null to pause, a number to run. Cleanup is automatic.

0

Start/pause a 500ms counter. Passing null pauses; a number runs.

Installation

import from @workspace/ui module-owned, not registry-installable

Usage