Skip to content

Latest commit

 

History

History
47 lines (41 loc) · 1.06 KB

README.md

File metadata and controls

47 lines (41 loc) · 1.06 KB



🤓
useDebuggableState





npm package npm downloads
A React Hook for debugging state changes.




npm i use-debuggable-state





Usage

Set the flag in the root file of your project.

window.reactDebugMode = true;

Replace your usages of useState with useDebuggableState

In the browser dev console, dump out the stacktrace

console.log(window.reactDebug.stack)