function replaceRoutes(routes) {
  return {
    type: REPLACE_ROUTES,
    payload: routes
  };
}
Action creator that replaces the current route config
@private
@param {Array<Route>|ReactElement} routes - New routes