3 ways that will make you React with Rails developer

1. react-rails Gem

This project is gain a lots of attention from Rails developer. It gained more stars then react_on_rails gem because of it’s simplicity to use in Rails application. It uses the default Rails asset management and automatically transforms JSX into the asset pipeline using the Ruby Babel transpiler. I have covered full tutorial how to integrate rails application with react using react-rails gem.

2. react_on_rails Gem

This is another way to integrate React with Rails by just adding a Gem to our Rails application. This is also very popular among the Rails developers. The key difference between react_on_rails gem and react-rails gem is, how they using rails assets pipeline. Instead of using the Rails asset pipeline for ES6 compilation, react_on_rails only uses it for including the JS that Webpack compiles. This feature enables us to install third party JavaScript library by npm. This will gives us extra flexibility at cost of installing some extra libraries. I am going to create a demo for that soon. Subscribe here for latest update.

3. React Front end and Rails API

Third approach is include separate View(fronted) in react and API (back end) in the rails application. These two component may be resides in single application directory or they be totally separate app. This approach will need some extra efforts to create two different apps but certainly it will be paid off. APIs will helps us to build mobile applications using the same code base. Also, react app will be running in more compatible java script environment(i.e. node and express) that will help you to use latest front end tools easily.

Call To Action

Do you want to be awesome React with Rails developer? Subscribe my weekly tutorials by clicking over here. This will make you really awesome React Developer.

About Author

Mayur is a Chief Technical Architect in his organisation. He has more than three years of experience in designing and building scale able applications using different technologies.

--

--

helping companies to take the stress out of software development and make their business shine.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Mayurkumar Patel

Mayurkumar Patel

17 Followers

helping companies to take the stress out of software development and make their business shine.