reactjs - fetch as google displays blank page only

前端 未结 8 998
囚心锁ツ
囚心锁ツ 2021-01-06 05:09

I\'ve just coded my first website using reactjs, but when I check how google sees my website, I receive the following result:

My HTML file looks like this:

8条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-06 05:34

    In one of my legacy projects I run Angular.js to insert dynamic content into a backend-rendered page. Google crawler is smart enough to let it render the dynamic javascript content and index it (e.g. the table is completely dynamic rendered from Ajax data).

    So I strongly double that it is related to Server-Side Rendering issues.

    I wouldn't suggest spending time on doing SSR as @AlexGvozden suggested - it's quite tedious, especially the Webpack setup. Probably even with Next.js and Create React App.

提交回复
热议问题