Skip to content

useLogger ​

Category
Lifecycle

Hook for debugging lifecycle

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

Usage ​

typescript
useLogger('Component', [1, 2, 3]);

Demo ​

Api ​

Parameters

NameTypeDefaultNote
namestring-The name or identifier for the logger
paramsunknown[]-Additional arguments to be logged

Contributors ​

Source • Demo