how to run React on top of Ruby-on-Rails
… don’t do it!
No seriously. The current state of JavaScript already relies on too many 3rd-party-packages and layers of abstraction.
Save yourself the headache and don’t chain your application to a separate language that’s also full of 3rd-party-packages and layers of abstraction!