Creating components in JSS Next.js apps

Abstract

Create components code-first or Sitecore-first and fetch data at the component level

Creating components is essential for developing any JSS application and it is important to have matching components for any Sitecore rendering. The infrastructure for creating components in a Next.js JSS application is similar to that used in other Sitecore JavaScript SDKs.

The steps for creating components in Next.js apps differ based on the development workflow you choose. You can create components as follows:

In Next.js JSS components, you can also fetch data at the component level.