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.
The JSS team has blogged about one possible way to support code splitting using JSS and React.
