Experiencing compile error with a higher order component's mapState function that returns an object within an object
问题 30/11/2019 Updated the code sandbox with the solution here. Original Question asked on 28/11/2019 I am trying to learn Higher Order Components but struggling to get a Higher Order Component connected to the redux store and router. Hoping that someone can help with a Higher Order Component type compilation problem I am struggling with relating to mapStateToProps . I am trying to create a higher order component, withErrorListener. It has the following features: withErrorListener wraps a base