How to marry ReactJS and Sitecore with Webpack – Part 4. Module on GitHub

It’s been a while since I wrote about Sitecore, React and embedded JS Engine. Also, my presentation on Philadelphia SUG last year was mainly theoretical. So the last few days I’ve spent cleaning up my sources that I’ve been using for those posts.

It looks like that this time to open sources.

github-octocat_yes-we-code1

GitHub

https://github.com/asmagin/sitecore-js-presentation

In the repo, I’ve put sources, samples and some docs that I will update and enrich going forward.

NuGet

https://www.nuget.org/packages/Sitecore.Js.Presentation

The project is also available for installation via NuGet.org. The module doesn’t require any Sitecore items to be installed in addition to this package.

Bonus

I’ve mentioned in previous posts that you do not need to have ReactJS.NET in your solution to be able to render code on a server side. Especially when you using WebPack.

As a side effect of removing this dependency, I found out that it is possible to use pretty much any JS templating engine with this module. If you follow a contract, that is used by .NET code.

A sample code in the repo contains an example of Lodash component. While it is not so cool as React 🙂 but it is still could be used for same simple cases that require only server-side rendering.


Follow me on twitter @true_shoorik. Would be glad to discuss ideas above in comments.

How to marry ReactJS and Sitecore with Webpack – Part 4. Module on GitHub

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s