I have a page which uses react, and from what I understood docs, Google bot, before indexing, is executing JS (see here: JavaScript SEO Basics). First thing which I want to ask, is if my thinking is correct.
Also, I want to add that I haven't added any code to tell Google bot to run JS. If there is anything which I need to add to run the JS, please guide me a bit what it would be.
If this is truth, then Google would index my page correctly, as react would be fired, and react would render content based on data attributes which are in page source. Not sure if this is important, but I don't fetch any data, required by react to render the app, all data are already in data attributes in the markup, but final markup is empty, something like this:
<div data-params="{'article':'super important content.'}">
// content goes here, rendered by react
</div
If that is not the case, and google bot wouldn't execute JS during indexing process, it would mean that Google will not index my page correctly, as it won't have any content (and I would need to use Server Side Rendering).
Also, I want to ask if there is any way to check, for non public pages (lets say on integration environment which is available only from internal network) how google would index my page. I know that it can be check for public pages through Google Search Console (if I'm not mistaken), but this doesn't work for environments which are not available publicly.
Can you help me with that ?
on integration environment which is available only from internal network
, see Google's help doc on: Testing locally-hosted or firewalled pages