I came upon this:
https://github.com/ssorallen/turbo-react
And I like what it does, I am just a bit confused about how I use this code within my Rails project that currently uses the React-Rails gem
I am mostly confused about where to put the code so that I can read it into my Rails gem with React Rails. If I paste the main JS file into my vendor/assets folder, I get this message:
Uncaught ReferenceError: global is not defined
I know that I am just fundamentally misunderstanding how to include this kind of JS file into my Rails project.