ShakaCode | ShakaCode Blog | Rails On Maui Blog | Rails | ReactJs | JavaScript | Webpack | Productivity |

Availability of ReactOnRails in native JS?


#1

Hi Folks
I have read “Using ReactOnRails in JavaScript” but I have so far been unable to make this work. Simiply, “ReactOnRails is not defined”

Is there some necessary step to make ReactOnRails available globally, or is there some event to know when it has become available?

Mahalo,
Alex Mouton


#2

Aha. Yes.
I was trying to graft a new pool of native React onto an existing React On Rails code base and had failed to include the bundled application js on on my separated root slim.

Thanks
Alex Mouton


#3

@Mouton I’m glad you found the answer.