Install the JSS Forms for React package in a React or Next.js JSS app
The Sitecore JavaScript Rendering SDK (JSS) Forms for React package is included as a part of the Sitecore JavaScript Rendering SDK (JSS). It implements components to render Sitecore forms in Sitecore JSS React or Next.js applications.
The package requires the functionality provided by Sitecore JavaScript Rendering SDK Forms.
This module is intended to be copied from and extended as needed - it is not meant to be a fully-fledged implementation for rendering Sitecore Forms in JSS applications, but you can also use it as provided.
To install the Sitecore JavaScript Rendering SDK Forms for React package, along with its dependencies, in a JSS React or Next.js application:
-
In a terminal, go to the root directory of your JSS React or Next.js application, and run the following
npm
command:RequestResponsenpm install @sitecore-jss/sitecore-jss-forms @sitecore-jss/sitecore-jss-react-forms