Plus React 150kb, Bootstrap 150kb and all their plugins make it multi megabyte.
I was thinking about converting my old server rendered web site into modern web. Still wondering if it's worth it.
Plus React 150kb, Bootstrap 150kb and all their plugins make it multi megabyte.
I was thinking about converting my old server rendered web site into modern web. Still wondering if it's worth it.
> I was thinking about converting my old server rendered web site into modern web. Still wondering if it's worth it.
As usual guideline I tend to use: Are you building a website or a web application? If you're building a website, you're best off with just static pages or static pages generated dynamically. If you need lots of interactivity and similar, better to build a web application, and React fits well for that purpose.
I wonder if it is safe to say vast majority of websites are simple enough to use the aforementioned pattern? There are so many "Doctors appointment" type dynamic websites that I don't think need anything like React or Angular.
I think React is great if you're building the next Notion or a web-based application such as Google Sheets.
Edit: Yeah, I am new to webdev and I find server side rendering "refreshing" :-)
They work fine for a large chunk of modern websites. And server side templating is not the only concept from that era that is much simpler than what is popular now. Those frameworks were primarily synchronous instead of asynchronous. And they worked in pretty much every browser. Without breaking the back button. With shareable links. And no scrolljacking.
For me personally the sweet spot for many applications/websites is still just that: A synchronous MVC framework with serverside rendering. With a sprinkle of vanilla JS or Vue on select pages for dynamic stuff.
https://laravel.com/docs/8.x/blade#anonymous-components
https://laracasts.com/series/blade-component-cookbook/episod...