preact-router

Connect your components up to that address bar.

preactrouter

https://github.com/developit/preact-router