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
jsxinside theroutes.jsfile. - Instead of connecting the routes to the reducer via middleware we decided to use
withRouterHOC instead, which means whenever you need access to the router information you will have to wrap your component withwithRouter.