News for hackers. Stuff that matters.
Re:Moving my serverless project to Ruby on Rails by mattmanser on Sunday November 15, 2020 @11:47AM (#25102523)
Even in mid-sized projects there's usually one or two pages with sufficiently complicated front-ends that it's worth having something like React in your toolbox, though it might be Vue or Svelte.

You don't have to make the whole app a SPA to use these tools. You can just use it in those few pages that really need it.

Re:Moving my serverless project to Ruby on Rails by joelbluminator on Sunday November 15, 2020 @01:15PM (#25103347)
Meh, put React into your build, maintain the thing, make the website download and parse React - all that just for one page? Better be a damn dynamic page. I wouldn't do it even if it's a big form with some dynamic fields.
Re:Moving my serverless project to Ruby on Rails by emteycz on Sunday November 15, 2020 @04:07PM (#25104844)
It's very easy to load React only on the page that needs it. Use dynamic ES module import, or link the standalone builds only on the pages that use it.

Alternative like Preact is very small and can be easily (pre)cached on the client side.