UNPKG

preact-missing-hooks

Version:

A lightweight, extendable collection of missing React-like hooks for Preact — plus fresh, powerful new ones designed specifically for modern Preact apps.

6 lines (5 loc) 209 B
/** * Mimics React's useTransition hook in Preact. * @returns [startTransition, isPending] */ export declare function useTransition(): [startTransition: (callback: () => void) => void, isPending: boolean];