I'm working on a website for a small business for free and need some advice. I've built web apps before using React and TypeScript, but they were mainly for internal projects. Now, I'm trying to decide what framework to use for a brochure-style marketing site. Should I go with Vite, which I'm familiar with, or try Next.js for server-side rendering or static site generation? I've heard Vite has options for static site generation too. Any recommendations or insights would be super helpful. I'm still learning in my Computer Science program, so real-world experience like this is new to me!
4 Answers
For a simple one-page marketing site, I’d definitely recommend using something like WordPress, Webflow, or any straightforward CMS. They make updating content a breeze for the business owners.
If you’re not needing complex state management, using React with Next.js is a solid choice. It’s great for SEO because it supports static site generation out of the box which is perfect for a marketing site. Vite is awesome for SPAs but might not be the best for SEO since it renders on the client side. Next.js will give you faster loads and better visibility on search engines, making it a reliable pick! Plus, if you ever need PWA features later on, you can always add them while keeping it simple at first.
Honestly, for your needs, Astro might be a good option. It's lightweight and designed for fast, static sites.
Just a thought: if this site doesn’t require dynamic content or database interaction, maybe skip the complexity of Next.js. Sometimes, using simpler tools is better for straightforward websites. Just saying!

True, but I've found WordPress can be a bit overkill for just a simple site.