Lesson

Extend Next.js' default Document class to ensure styles are rendered on the server

In this lesson, we learn how to modify Next.js' custom Document to ensure that our custom components are rendered on both the client and the server. Components in this lesson are built using the emotion-js library.

Duration
6 min
Access
Free
Transcript
Available

In this lesson, we learn how to modify Next.js' custom Document to ensure that our custom components are rendered on both the client and the server. Components in this lesson are built using the emotion-js library.