useLogger ​
Hook for debugging lifecycle
typescript
import { useLogger } from '@siberiacancode/reactuse';
Usage ​
typescript
useLogger('Component', [1, 2, 3]);
Demo ​
Api ​
Parameters
Name | Type | Default | Note |
---|---|---|---|
name | string | - | The name or identifier for the logger |
params | unknown[] | - | Additional arguments to be logged |