Skip to content

gitbugr/use-debuggable-state

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation



🤓
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)

About

A React.js hook for debugging state changes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published