How to use Google fonts in React.js?

前端 未结 12 778
既然无缘
既然无缘 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:33

    It could be the self-closing tag of link at the end, try:

     
    

    and in your main.css file try:

    body,div {
      font-family: 'Bungee Inline', cursive;
    }
    

提交回复
热议问题