Skip to content

useRenderInfo ​

Category
Lifecycle

Hook for getting information about component rerender

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

Usage ​

typescript
const rerenderInfo = useRenderInfo('Component');

Demo ​

Api ​

Parameters

NameTypeDefaultNote
name?string'Unknown'Component name
log?booleantrueToggle logging

Contributors ​

Source • Demo