Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on React Router v5. Parent comment
https://gist.github.com/tim-field/99104278abfad1b8dd94d26717...
I combine this with a simple switch statement in my main component and it does the job.
const [page, setPage] = useRouter('/')
There are no comments on this comment yet.
https://gist.github.com/tim-field/99104278abfad1b8dd94d26717...
I combine this with a simple switch statement in my main component and it does the job.
*https://reactjs.org/docs/hooks-custom.html