So far we’ve build the router in a component and a history module within the source code of our app. The problem of it is that the router is tied to the app, specially because the routes are defined within the
That could be improved by moving out the routes from the component and passing them as a parameter. But still, the developer must import the
AppRouter component and the
history.js module and use it around.