use-trace-update
v1.3.3
Published
React Hook to trace functional component updates.
Downloads
11,478
Readme
useTraceUpdate
A hook to trace updates to React function components
useTraceUpdate
is a React Hook that logs to the console prop changes.
Install
npm install use-trace-update
oryarn add use-trace-update
Use
import useTraceUpdate from 'use-trace-update';
const MyButton = (props: AllProps) => {
useTraceUpdate(props)
return <button />;
};