1. Sitecore JavaScript Services SDK (JSS)

Sitecore JSS integration in MVC solutions

Version:

In some situations, you might want to use complex JavaScript components in an MVC solution.

To integrate JSS or JavaScript components in your MVC application, you can use the following techniques:

  • Client-side embedding - when you want to run a micro-application or create interactive tools.

  • Sitecore JavaScript renderings - when you want to implement a JSS component as a Rendering within an existing Sitecore MVC website.

    Important

    This technique is deprecated. Documentation for using Sitecore JavaScript renderings is available in the Github repository.

Tip

Starting with version 19.0.0 of JSS and Headless Services, you can render MVC applications to static HTML using a JSS Next.js application and incrementally convert your MVC application to JavaScript. With this approach, you can leverage the full capabilities of modern front-end frameworks together with MVC applications.

If you have suggestions for improving this article, let us know!