Uncaught TypeError: Cannot read properties of undefined (reading 'bind')

Tell us what’s happening:
I wrote handleKeyPess method to handle the key press event.
I binded this method and got an error message:
"Cannot read properties of undefined (reading ‘bind’) "
I printed out props with consol log. As a result, I got an empty object.
Prior to this, my code was working. I do not udnerstand how can props return an empty object.
Can you please help me with the advice on what is happening and how should I fix this,

Many thanks.

Link to my code:

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36

Challenge: Build a Drum Machine

Link to the challenge:

Check for typos

handleKeyPress !== handleKeyPess

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.