Posts

Showing posts from May, 2022

Using React components in Sitecore

Image
  PROBLEM BACKGROUND Do you need to incorporate a React component into Sitecore?   Is your team using SXA or a similar technology which provides out of the box components that your building your site with?   Are you NOT using Sitecore JSS / headless yet?  We are developing a new site in Sitecore 10.  We wanted any component that interacts with our CRM data to be written in React.   We are NOT using Sitecore JSS but we are using Sitecore SXA.  The question becomes,  how can we incorporate a new Sitecore rendering that will use React as the front end technlogy.  How will we get the rendering and datasource parameters successfully passed down to the React component? One approach I've seen on several Sitecore sites, blog posts, etc is to use ReactJS.Net.    That solution works but feels like overkill to include a React component.   You get to maintain ReactJS.Net components in your solution, You need to have javascript engines on your server and in your local solution to allow for ser