React-Redux: What is the canonical way to bind a keypress action to kick off a reducer sequence?
问题 This is a newbie question for react-redux I spent a couple hours hunting around before finding so I am posting the question and then answering for posterity and also maybe code review. I am using react-redux to create a game where I want to use the WASD keys to move a character around a small map. (This is just a practice example for a larger endeavor). The map simply consists of a bunch of colored <div> s. As I understand it I need to somehow bind the keypress event to something in the React