Access Redux store in JavaScript function
问题 Is it possible to map redux state to a regular javascript function rather than a React component? If not, is there another way for connecting redux state to a function? (obviously without explicitly passing it in as a param) I have tried connecting to a function, but it breaks (I don't have an exact error message. the server just hits an uncaughtException). Since React components can be pure functions, does connect() only work with a class ComponentName extends Component (and the likes)? The