How to use Google fonts in React.js?

前端 未结 12 810
既然无缘
既然无缘 2020-12-02 18:06

I had built a website with React.js and webpack.

I want to use Google fonts in the webpage, so I put the link in the section.

Go

12条回答
  •  醉酒成梦
    2020-12-02 18:40

    Had the same issue. Turns out I was using " instead of '.

    use @import url('within single quotes'); like this

    not @import url("within double quotes"); like this

提交回复
热议问题