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:
1 2 3 | handleKeyUp: function(e) { console.log(e.type, e.which, e.timeStamp); }, |
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.