React: Keyboard Event Handlers All Null

Posted by Pinki | Updated on

In this example, I have shred keyboard event Handlers all Null in React. BinaryMuse provided the answer on IRC. Turns out it’s just a quirk; you can’t read the properties directly from SyntheticKeyboardEvent — you need to specify the properties from the handler:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers