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

Type: Documentary
Language: English
Status: Ended
Premiered: 2006-03-05
Official Site:
Rating (average): 8.7

Go back home