Backend Discussion Frontend Javascript React.js Ruby On Rails

react-rails, easy way to integrate react to ruby on rails

react-rails(react-ujs) is a convenient and easy way to use react.js on ruby on rails projects.
Using this gem/npm combo, we can add react.js boiler plate structure and generate components easily.

gem 'webpacker'
gem 'react-rails'
$ bundle install
$ rails webpacker:install       # OR (on rails version < 5.0) rake webpacker:install
$ rails webpacker:install:react # OR (on rails version < 5.0) rake webpacker:install:react
$ rails generate react:install

Running rails server with rails s, will compile react webpack as well.

Stan

Stan is an experienced full-stack developer and software engineer who is focused on web and game development. He is enthusiastic about new technologies. Stan is highly skilled in many programming languages and frameworks, and he always tries to deliver the best approach.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *