GuitarRich / sitecore.react

A ReactJS module for building Sitecore components with React
MIT License
36 stars 22 forks source link
reactjs sitecore sitecore-components

Sitecore.React

NuGet version

A ReactJS module for building Sitecore components with React and ReactJS.NET.

The module has 2 parts. A Sitecore package that installs the required JsxControllerRendering and JxsViewRendering templates, and the Nuget package for use in your projects. This adds the required pipeline processors and components to render the React Jsx files as Sitecore renderings.

Features

Getting Started

  <script src="https://github.com/GuitarRich/sitecore.react/raw/master//fb.me/react-15.0.1.js"></script>
  <script src="https://github.com/GuitarRich/sitecore.react/raw/master//fb.me/react-dom-15.0.1.js"></script>
  @Scripts.Render(Sitecore.React.Configuration.Settings.ReactBundleName)
{this.props.placeholder.KEY}

Replace KEY with the placeholder key you want to create.

{this.props.placeholder.$Id.KEY}