Use google.com/webmasters/tools/googlebot-fetch to see how google bot renders your website, Fix the Issues .
Here what you can do to boost SEO for React / Angular or any Javascript framework based websites.
- Use server-side rendering : React & Angular 2+ both provides server side rendering to load the first view of URL as complete HTML page.
- Define all your possible routes in sitemap.xml (Though , google bots are smart enough to identify all your routes but again it will take a lot more time till google identifies all your routes. ) sites.com/product/:id In this case, add all routes to sitemap.xml with all possible value of id.
Rest all things are common for all websites, like : responsiveness, proper use of title, h1, h2, h3 tags , properly defined alt tags, enough amount of content etc etc .