| I know this is a highly subjective, and possibly loaded, question. But here are the related questions at the back of my mind when I ask this: - Do I really need to use React (a client-side framework) to generate static websites? What's wrong with Ruby + Liquid (that I'm familiar with), or anything similar (Python, PHP, etc)? - Assuming that the static website doesn't include a lot of JS in the first place, exactly how much faster is the Lighthouse/PageSpeed score for static websites built with Gatsby/Next JS? Are there any benchmarks available? Do these frameworks optimize the CSS delivery as well (remove unused CSS, inline the CSS, etc)? - What are the chances that the JS community will jump to the "next new thing" in 2 years and I'll be stuck with a pile of unmaintained mess? - Are there frameworks for Ruby/Rails that do a similar job? Does Jekyll (or Hugo) come close? - Are Gatsby / Next JS really for static website, or for mostly static websites with a sprinkling of dynamic elements (eg. e-commerce, travel booking, etc), that people unnecessarily wrote in React, and ended-up creating a problem where none existed? - What is truly the sweet spot for this kind of technology? Google search results are full of blog posts where people are just discovering these frameworks (or by companies who are pushing them). |
You want to have some templating and data integration -> Use Eleventy (https://11ty.dev)
You want to have a complete framework -> Use Next.js :)
Note: Beyond Next.js you won't need anything else for any kind of website :)