I use preact in some of my projects and its router ("preact-router") actually does what it should:
- has an easy <Router onChange={...}> callback
- instead of <Link to> you can just use <a href> and it works for internal and external links
- routes are per default "exact", so "/profile" doesn't match "/profile/settings"
So much better, highly recommended. You probably need to alias "preact" to "react" in your webpack settings though.