-1

my page is created by appendchild and innerHTML by javascript,how to make it good for SEO?

how react.js do that?

J.Doe
  • 31
  • 5
  • `React` app is not `SEO-friendly` – Rayon Jul 20 '16 at 05:56
  • but I saw some website created by react that google can scratch the content of the website,will pages created by plain appendchild and innerHTML also can be scratch by google? – J.Doe Jul 20 '16 at 06:01
  • 1
    [__How do you use React.js for SEO?__](http://stackoverflow.com/questions/28252768/how-do-you-use-react-js-for-seo) – Rayon Jul 20 '16 at 06:06
  • thanks,good article.But do you know if I host my website on github,is there some article for not your own server? – J.Doe Jul 20 '16 at 06:12

1 Answers1

-1

Your site is just fine for SEO as it is.

Edit: Google has a tool that shows you exactly how their bot sees your site: https://support.google.com/webmasters/answer/6066468

Oh but first, let's define a really narrow definition of SEO as "when Google crawls my page, it will see the same text that the humans see when they view my page".

Google has been executing JavaScript when indexing for years. Officially two years ago, a confirmation of sorts a year ago.

I have no idea if Bing makes an attempt to run JS. Probably.

So when people say React is good for SEO, they probably either don't know that Googlebot runs JavaScript, or they're talking about Google's performance penalty for slow sites, which is valid.

That for me is one of the best reasons to use React with server-side rendering. Your site will load a lot faster because it doesn't need any JavaScript to load before the humans can start reading. This is good for SEO.

(Having said all that, high quality content is the real SEO juice.)

David Gilbertson
  • 4,219
  • 1
  • 26
  • 32
  • If I don't do server side rendering will google crawls my page? Is this means google will excute any javascript on my site before crawls on it? thanks for reply. – J.Doe Jul 20 '16 at 09:30
  • Yes. You can see your site using this tool: https://support.google.com/webmasters/answer/6066468 – David Gilbertson Jul 20 '16 at 11:02
  • Thanks,but why do react still need to server side rendering for SEO? – J.Doe Jul 21 '16 at 01:10
  • React *does not need server side rendering for SEO*. Anyone that says so is wrong. There is a lot of misunderstanding about SEO (probably the reason this answer is -1 points). Here's someone that actually tested if Google will index a React site that is only client-side rendered: http://chrisarasin.com/react-seo/ – David Gilbertson Jul 21 '16 at 03:37
  • Thanks for the answer – J.Doe Jul 21 '16 at 08:14