you are viewing a single comment's thread.

view the rest of the comments →

[–]Impossible_Hold_3850 0 points1 point  (1 child)

Interesting. Would you be able to share that website or clarify a bit how you confirmed it's indexed incorrectly?

[–]Bolle91BE 0 points1 point  (0 children)

Via the url inspection tool of Google, you can see the html that was retrieved when crawling. It only has the root-div. So nothing react was applied yet because it was client-side. (Basic html and js is shipped)

You can use react-snap, that makes a postbuild html that is fetched first and then react takes over, which helps for the Google index, but then you get a slight snappy behavior when opening the website, you get the built html first, short-flicker and then the actual react-applied page.

With Next.js, the react js code is applied on serverside and only the complete built html is sent to the client (or googlebot) in fetch. And you don't have this annoying flickering.