5 ms·
I've used React and Rails together. Unless your app is highly interactive, I would do the frontend in Rails. You can use helper methods to render the React / Vu
by dyeje 8y ago
I've used React and Rails together. Unless your app is highly interactive, I would do the frontend in Rails. You can use helper methods to render the React / Vue / etc components alongside your regular markup. In some cases, you can even pass the data directly into the component avoiding an API call at all. To me, this is the best of both worlds. You let Rails do the heavy lifting and bring in framework components when you need to do something complicated / interactive in the frontend.