Skip to content

useIsFirstRender

Hook that returns true if the component is first render

lifecycle
low
test coverage
Last changed: 7 months ago

Installation

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

Usage

typescript
const isFirstRender = useIsFirstRender();

Demo

Api

Returns

boolean

Source

SourceDemo

Contributors

D
debabin
debabin
H
hywax
hywax

Released under the MIT License.