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.
[ Parent
| on HN ]
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.