title: What's the correct way to integrate ReactJS in a Rails application?
body: <p>I am looking for the right way to integrate ReactJS in a Rails app. It is very easy to use react components with the <a href="https://github.com/reactjs/react-rails" rel="nofollow">react-rails</a> gem. Until I use my own components everything works fine.</p>
  
  <p>It becomes interesting when you integrate 3rd party components. Often those are available as npm module. So I integrated <a href="http://browserify.org" rel="nofollow">Browserify</a> to handle dependencies within modules. Here I often get weird errors. For instance I get <code>Uncaught TypeError: Cannot read property '_currentElement' of null</code> when I am trying to integrate <a href="http://griddlegriddle.github.io/Griddle/index.html" rel="nofollow">Griddle</a>. </p>
  
  <p>I made a small <a href="https://github.com/MMore/react-rails-example" rel="nofollow">example Rails app</a> of the current setup. There you see that my own component works, but a 3rd party not.</p>
  
  <p>So where is the mistake or what's the way to integrate ReactJS in a Rails application?</p>