Router

This application is using react-router for the frontend routing. Is important to notice that we also have the backend serving the page and the assets.

  • routes are defined as a data-structure instead of using jsx inside the routes.js file.
  • Instead of connecting the routes to the reducer via middleware we decided to use withRouter HOC instead, which means whenever you need access to the router information you will have to wrap your component with withRouter.