According to React, using componentWillReceiveProps() is a bad idea and it will be deprecated soon, version 17 seems to be the last supporting the method with that name.
When using keydown for classes, what should be the proper way to handle the key events?