useLogger

Log the mount, the updates and the unmount of a component with its props, for debugging.

This is custom React hooks, you need to follow the Basic Rules when you use it.

General

Open the console to see the logs.

APIs

useLogger

const useLogger = (componentName: string, props: unknown[]) => void
Edit this page on GitHub