useFirstRender
Returns a boolean value indicating whether it's the first render or not.
Installation
Install the custom hook from your command line.
npm i @raddix/use-first-render
Usage
API
Returns
The useFirstRender
hook returns a boolean value.
Return value | Description | Type |
---|---|---|
isFirstRender | true for the first render, false for others. | boolean |