getServerSideProps: with dynamic routing

This page uses getServerSideProps() to fetch a TV show from an API.
The ID is set in the URL: /getServerSideProps/:id

You can change the ID to any number between 1-10000. Try it!

View code on GitHub

Show #305: Black Mirror

Type: Scripted
Language: English
Status: Running
Premiered: 2011-12-04
Official Site:
Rating (average): 8.5

Go back home