@nikikalwar/react-debug-hooks
v0.1.0
Published
React debugging hooks for render tracing and re-render counts.
Maintainers
Readme
@nikikalwar/react-debug-hooks
Debug your React components with helpful hooks for tracing renders and tracking render counts.
Hooks
useTraceRenderWithProps(componentName, props)
Logs which props changed and triggers console.trace().
useRenderCount()
Returns how many times the component has rendered.
Install
npm install @nikikalwar/react-debug-hooks