useRenderInfo ​
Hook for getting information about component rerender
typescript
import { useRenderInfo } from '@siberiacancode/reactuse';
Usage ​
typescript
const rerenderInfo = useRenderInfo('Component');
Demo ​
Api ​
Parameters
Name | Type | Default | Note |
---|---|---|---|
name? | string | 'Unknown' | Component name |
log? | boolean | true | Toggle logging |