react-hook-mousetrap
react-hook-mousetrap copied to clipboard
Question: Why is refs used in the hook here ?
Hi @aramando ,
Apologies for the noob question, I have been wondering why the handlerCallback isn't directly passed to Mousetrap;
Instead, you seem to be storing the handlerCallback function in an actionRef and invoking it. What is the difference?