score:0

export function withState(WrappedComponent) {
  return connect(
    (state) => ({
      posts: state.postsReducer.posts,
      comments: state.commentsReducer.comments
    }),
    null
  )(WrappedComponent);
}

Related Query

More Query from same tag