Callback ββββββββ 22
Context ββ 7
DebugValue β0
Effect ββββββββββββββββββββββββββββββββββββββββββββ 120
ImperativeHandle β0
LayoutEffect β0
Memo ββ 6
Reducer β0
Ref ββββββββββββββββββββ 56
State ββββββββββββββββββββββββββββββββββββββββββββββββββ 136
Just run npx react-hook-stats src where src is your source code directory.
It will output a PNG file in your current directory, if it finds any hook usage.
It only checks the built-in hooks.
To see if we are all using hooks in a similar way! The output above is from a project of mine, but I suspect that a lot of people might migrate towards more useReducer calls as they get better with hooks, for instance.
I'd like to see a high-level view of how other people are using hooks without having to read all their source code.