Read and search through all the Sitecore JSS documentation

Using JSS with React

Sitecore JSS supports developing React applications with Sitecore.

Sample Application

The JSS CLI can be used to quickly create an create-react-app-based JSS application:

jss create my-react-jss-app react
cd my-react-jss-app
jss start

We recommend reading the sample app walkthrough to understand the sample app, but it's also well commented if you'd rather read code.

Placeholder Techniques

The React Placeholder component is very powerful. Here are some advanced techniques that can be used with placeholders.

Code Splitting

JSS does not ship with code-splitting support out of the box for simplicity, but it is possible to implement using standard React component-based code splitting techniques, such as react-loadable or loadable-components (recommended by React).

The JSS team has blogged about one possible way to support code splitting using JSS and React.

Found a problem? Have something to add? Edit this on GitHub