src/client/components/Routes.js
//render main nav with a component
render main nav with a component
render main nav with a component
renderNavWith(Component) {
    return (
      <div className="flexible-content">
        <TopNavigation />
        <div id="sideNav">
          <SideNavigation />
        </div>
        <main id="content" className="p-5">
          <Component />
        </main>
        <Footer />
      </div>
    );
  }
renderNavWith ( Component ) { return ( < div className = "flexible-content" > < TopNavigation / > < div id = "sideNav" > < SideNavigation / > < / div > < main id = "content" className = "p-5" > < Component / > < / main > < Footer / > < / div > ) ; }
render main nav with a component
render main nav with a component