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.
I've bundled the app using webpack. I've tried to setup a simple demo, but for some reason this build is failing entirely; some error about usage of "use strict".
The issue exists afterall. I have noticed drop in traffic after updating production to React 16.0.0-rc.2. Turns out it is due to new pages not being indexed.
You will need to use an old browser such as Chrome v25.
That error:
Uncaught TypeError: cannot set property 'nextEffect' of undefined
Is coming from react code base.
The same issue is affecting Fetch as Google.
I am not able to replicate the same issue using "Hello, World" example. I am guessing it might be something to do with setState or context being using in the real world app.
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.