News for hackers. Stuff that matters.
Re:React Router v5 by badestrand on Thursday March 21, 2019 @02:23PM (#19455627)
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.

There are no comments on this comment yet.