UNPKG

@supunlakmal/hooks

Version:

A collection of reusable React hooks

8 lines (7 loc) 266 B
/** * A simple utility hook that returns true only on the initial render of a component. * Returns false for all subsequent renders. * * @returns {boolean} True if it's the first render, false otherwise. */ export declare const useIsFirstRender: () => boolean;