Understanding React-Redux and mapStateToProps()
Yes, it is correct. Its just a helper function to have a simpler way to access your state properties Imagine you have a posts key in your App state.posts state.posts // /* { currentPostId: “”, isFetching: false, allPosts: {} } */ And component Posts By default connect()(Posts) will make all state props available for the … Read more