Skip to content

useIsFirstRender ​

Hook that returns true if the component is first render

lifecycle
test coverage
Last changed: last month

Installation ​

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

Usage ​

typescript
const isFirstRender = useIsFirstRender();

Demo ​

Api ​

Returns

boolean

Source ​

Source • Demo

Contributors ​

D
debabin
debabin
H
hywax
hywax

Released under the MIT License.