Rick Rick - 3 months ago 33
React JSX Question

Installing react-redux in a Rails project

I am building a React app in Rails and would like to try

react-redux
. I noticed that it doesn't offer a CDN nor a bower package.

The installation instructions recommend using NPM, but this is not a node project. I handle all my current assets through the Rails asset pipeline, a CDN or a bower package (via rails-assets)


  • Is there a way to install it without using NPM?

  • Is there a way to get NPM packages to play nice with existing asset pipeline packages?


Answer

I found that it is possible using react-rails in conjunction with browserify-rails. This blog article explains it pretty well.