reactjs - fetch as google displays blank page only

前端 未结 8 941
囚心锁ツ
囚心锁ツ 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:30

    Add babel polyfill to your project:

    npm install --save babel-polyfill
    

    And then import it in your index.js (entry point):

    import 'babel-polyfill';
    

    Hopefully, this will solve your problem.

提交回复
热议问题