Returns the page from the route. If the component provided is a function (and not a class) call the function to get the promise.
Returns the page from the route. If the component provided is a function (and not a class) call the function to get the promise.