getInitialProps: basic page

This page uses getInitialProps() to fetch a TV show from an API.

When navigating client-side, getInitialProps() runs on the client.
When requesting this page directly, the page is rendered server-side by a Netlify Function.

View code on GitHub

Show #768: Planet Earth

https://api.tvmaze.com/shows/768

Type: Documentary
Language: English
Status: Ended
Premiered: 2006-03-05
Official Site: http://www.bbc.co.uk/programmes/b006mywy
Rating (average): 8.7


Go back home