A hook to trace updates to React function components
useTraceUpdate
is a React Hook that logs to the console prop changes.
npm install use-trace-update
oryarn add use-trace-update
import useTraceUpdate from 'use-trace-update';
const MyButton = (props: AllProps) => {
useTraceUpdate(props)
return <button />;
};