Keep a page section in the URL hash as #/route, so it can be linked to and the back button returns to the previous
one, while plain #anchor links inside the page keep working.
Returns readonly[string,(route:string)=>void]
The current route (empty at the root) and the function that navigates to another.
Keep a page section in the URL hash as
#/route, so it can be linked to and the back button returns to the previous one, while plain#anchorlinks inside the page keep working.