ReactJS is an excellent tool for building rich experiences for the web, but integrating it with Ruby on Rails presents some unique challenges. This session will explore three approaches with increasing degrees of complexity for using React with your Rails application. The first demonstration will use the “react-rails” and optionally “sprockets es6” gems to write simple ReactJS components and distribute them with Rails applications. Next you’ll see how to use webpack with babel to write pure ES2015 modules for ReactJS components to enhance Rails applications. The final example is a full scale front end React application built on Redux with UI routing. This application will interact with a Rails JSON API. We will discuss the strengths and challenges to each approach. All approaches will be discussed and demonstrated with code samples.
By |2017-01-14T09:11:25-05:00January 14th, 2017|