Install JSS for React

Abstract

How to install JSS for React in pre-existing React apps

To use JSS in a pre-existing React application, you must install the core JSS package and the React SDK.

To install the Sitecore JavaScript Rendering SDK (JSS) for React:

  • In a terminal, run the following npm command:

    npm install @sitecore-jss/sitecore-jss @sitecore-jss/sitecore-jss-react

Important

We recommend you use this library as part of the React sample application. These instructions are general and do not cover many aspects of configuration and usage.