Skip to content

useIsFirstRender ​

Category
Lifecycle

Hook that returns true if the component is first render

typescript
import { useIsFirstRender } from '@siberiacancode/reactuse';

Usage ​

typescript
const isFirstRender = useIsFirstRender();

Demo ​

Api ​

Returns

boolean

Contributors ​

Source • Demo