1/26/26
I find that basically every time I’m forced to deal with a React hook API that just has a HookNameReturn type it is always the soupiest awful to work with API.
Hooks are just functions. If you wrote a function named autoMatch who’s return signature was “IDK just some stuff returned from the autoMatch function” you would be rightfully scorned.
Why is it all of the sudden fine to type stuff that way once you stick the word use in front of your function?
It’s Not Okay! (I Promise).