This is a ample Next.js by ZEIT application that takes advantage of the advanced routing capabilities.
In particular, note that the photo route can be attached to two distinct components:
- When navigated within the application, it is rendered as a modal
- When the page is refreshed, it is rendered independently
Try it Yourself
git clone https://github.com/zeit/nextgram.git cd nextgram/ yarn yarn dev