I am starting a new project and trying to decide if I should use a Javascript framework (like vue.js or react) and create a Ruby on Rails API, or use Ruby on Rails to server-side render pages and sprinkle javascript on to the pages (potentially leveraging Stimulus.js).
I am currently very comfortable using RoR to generate a web application and have only recently started looking at using a JS framework.
My question is, what benefits do you get from using a JS framework, vs server-side rendering? I'm having trouble defining a line for when client side should be used compared to the server-side rendering.
For instance, in poor internet connection environments, does client-side perform better than server-side rendering? My assumption is that because all the data is called on initial load of the page, it allows for the application to run client-side with little to no internet access until the need to persist something to the DB is required.
I believe I understand how the basic implementation and flow works for Client-side rendering, but I am unsure why we need it and what benefits it provides over server-side rendering with javascript.
Thanks,