Redirect a view to another view.
Usage
var redirect = var html = var choo = var app = appapp app { return html` welcome! `}
API
view = redirect(route, rootSelector?)
Create a new view that redirects to a route
. Can take an optional second
argument for the root selector which is used as the entry point of the
application. Defaults to document.body
.
Installation
$ npm install choo-redirect