Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on React Router v5. Parent comment
- 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.
- 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.