import React, { Component } from "react"; import { Link } from 'react-router-dom'; import { connect } from "react-redux"; import { compose } from "redux"; const HeaderFooter = (HocComponent) => { return class HeaderFooterComponent extends Component { render() { return ( ); } } } const mapStateToProps = state => { return { }; }; const WithHeaderFooter = compose( connect(mapStateToProps, null), HeaderFooter ) export default WithHeaderFooter;