7
10 Comments

How do you manage the SEO in a React JS web app?

Hello world

posted to Icon for group Developers
Developers
on January 20, 2020
  1. 5

    I use Next.js for my React apps so that all pages are server-rendered and easily indexed by Google. Other than that, SEO is the same for any other app: proper meta tags, back-links, etc. Any issues you're running into specifically?

    1. 1

      Yeah - Next.js is awesome for this! SSR out of the box, no more SEO woes!

      1. 1

        How big/steep a learning curve is SSR if you have never done it?

        1. 3

          Next.js makes it quite straightforward - if you already know React then you should be good.

  2. 3

    You need to ensure you have server-side rendering. Gatsby and Next are some good frameworks to use otherwise you can find a tutorial here: https://alligator.io/react/server-side-rendering/

  3. 2

    You can also use services like https://prerender.io if you just started a website without server-side-rendering. Of course, I would recommend using SSR for SEO purposes, but prerender.io is a nice tradeoff. And the best part of it? It is completely open-source which means you can host your own prerender service for free :)

  4. 2

    React Helmet is a nice component that can help you manage meta tags that are relevant to SEO.

  5. 1

    Most search engines deal fine with SPAs nowdays, just make sure the first content your page renders is actually the content you want the search engine to see and that your routes are set-up correctly. I think you can have good SEO in a React JS app without server side rendering.

  6. 1

    This comment was deleted 6 years ago.

Trending on Indie Hackers
30 days ago I posted here with $0 revenue. Here's what actually happened next. User Avatar 148 comments I used $30,983 of AI tokens last month in Claude code on $200/mo plan User Avatar 91 comments How to spot high-intent customers in 5 minutes, for free. User Avatar 44 comments Fixing broken scrapers instead of working on my actual product. So I made it my problem. User Avatar 39 comments I Built a Habit Tracker SaaS Alone in 6 Weeks (No CS Degree, No Team). Here's Exactly How User Avatar 39 comments I built an open-source PII masking layer for LLM APIs — early traction, looking for design partners User Avatar 28 comments