Anyone out there who has successfully shipped/launched a React JS app - what did you do for SEO and to rank on Google? I've been building with React JS for the past year, but now for a new project, I'm trying to decide between Next JS and React JS given the obvious benefits of Next JS regarding SEO and Google.
If you did move forward with a project using React JS, what did you do for SEO (especially given you have just a single URL)?
Would love to hear any thoughts/advice! Thanks.
Next.js offers many different rendering strategies (SSG, ISR, SSR or CSR), and these can all be configured at a route level. I assume if your building an app you'll have some type of dashboard, if so dashboards will generally have a large amount of dynamic data so you could use SSR for this. You'll probably have a blog or some other static content on the same domain too - for this you can use ISR or even just SSG. Because you're using Next.js they'll also have great SEO out of the box.
I think the big advantages of Next.js is API routes and middleware, you can effectively build your frontend and backend together and take advantage of Next.js Serverless functions which will scale infinitely. Hosting is also a breeze with the Vercel CLI.