How it works...

Now that we have created all the pages and components, let's test our Next application by running npm run dev:

Let's now see how it is rendering it in the HTML view:

Banzai! The HTML is rendered with SSR and is perfect for improving the SEO. As you can see, creating an application with Next is super fast, and we avoid a lot of configuration when enabling SSR.

Get React Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.