r/javascript • • Jul 26 '17

React 16 beta

https://github.com/facebook/react/issues/10294
36 Upvotes

26 comments sorted by

View all comments

11

u/gajus0 Jul 26 '17

A fair warning: I did not manage to get a basic React v16 application to be index by Google. It looks like something in their code-base is breaking the Google crawler. The same issue can be replicated using old Chrome version, e.g. Chrome v24. I've sent a message about it to a member of the React team, but haven't heard back yet.

0

u/[deleted] Jul 27 '17

[deleted]

0

u/Woolbrick Jul 27 '17

This is my thought as well. Google's not going to crawl an SPA app that's only generated on the client side, since it doesn't execute JS!

10

u/ECrispy Jul 27 '17

Actually Google indexing bots do execute js but will not do it for complex pages.

8

u/Woolbrick Jul 27 '17

Right, but you have literally no idea what limited sandboxed JS Google will run. You have to design your pages assuming Google's not going to run anything.

3

u/gajus0 Jul 27 '17

My test has been always to see if it works on Chrome v24. If it works, it will work for Google bot. I've got that the precision of syntax errors.

2

u/jacquesdancona Jul 27 '17

Do you have any source for that?

1

u/avenp Jul 27 '17

It also wont render if there is any asynchronous code/ajax calls.