import React, { Component } from "react"; import { Link } from 'react-router-dom'; import { connect } from "react-redux"; import { compose } from "redux"; import './sidebar.css'; const Sidebar = (HocComponent) => { return class SidebarComponent extends Component { render() { return (
Sidebar
); } } } const mapStateToProps = state => { return { }; }; const WithSidebar = compose( connect(mapStateToProps, null), Sidebar ) export default WithSidebar;