-
Notifications
You must be signed in to change notification settings - Fork 753
Closed
Description
Hello everyone,
I wanted to create a Rails app with React, following this tutorial:
https://medium.com/@olance/rails-react-browserify-e315001d5974
The summary of that tutorial is that he shows how to setup the react-rails gem and add browserify so that you can manage your dependencies using npm and load them with commonJS.
But, reading from the issues, it looks like commonjs and broweserify is not supported with this gem, (unless you use a workaround like #120 )
So my question is, what is the preferred or "first-class" way of handling dependencies ?
Thanks in advance!
Activity
rmosolgo commentedon Dec 23, 2014
I think the short answer is:
underscore-rails
or copy-pasting dependencies intoapp/assets/javascripts/vendor
, then requiring them with//= require ....
)