reactjs - Getting started with React and Rails -


i have started new project in use react , rails. project on small side , require basic interactive ui, hence react. far know there 2 ways started this:

  • using react-rails gem , use built in view helper
  • create rails api , react/flux frontend app

i have few questions however. in no particular order:

  • react-rails seems simpler solution, drawbacks facing?
  • i come rails , ember background rails api + react fe solution makes architectural sense me. react-rails gem i'm confused on how things should done. primarily, how handle routing? suppose won't have access react route helpers , need pass paths react components props?

thanks in advance!

for small project react-rails, https://github.com/reactjs/react-rails, great have used in production last year on 2 sites hundred thousand visitors month , haven't had issues.

that said if want use redux, react-router or flux don't use react-rails go api route.

my rule if using react components use react-rails.

if doing redux, flux app make frontend app.


Comments