Skip to content

useIsFirstRender ​

lifecycle
test coverage
Last changed: last month

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

Source ​

Source • Demo

Contributors ​

Avatardebabin
Avatarhywax

Released under the MIT License.