use-trace-update

React Hook to trace functional component updates.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
use-trace-update
2801.3.33 months ago5 years agoMinified + gzip package size for use-trace-update in KB

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 or
  • yarn add use-trace-update

Use

import useTraceUpdate from 'use-trace-update';

const MyButton = (props: AllProps) => {
  useTraceUpdate(props)
  return <button />;
};