Font-awesome: font awesome not working with react js v 5.7.0

Created on 1 Feb 2019  路  3Comments  路  Source: FortAwesome/Font-Awesome

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.0/css/all.css" integrity="sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ" crossorigin="anonymous">

i add think link in to index,html

and this is my code

<div className="social-link">
                    <a href="https://www.google.com" rel="noopener noreferrer" target="_blank">
                    <i className="fa fa-linkdin-square"  aria-hidden="true" />
                    </a>
                </div>

those icon are not showing

note: earlier i used the same way its working perfect (link maxcd,...) version 4.7.0

Most helpful comment

Hi!

Thanks for being part of the Font Awesome Community.

Please note that the syntax and names have changed between FA4 and FA5. Also, <i> is not a self-closing tag (this is an error in FA4 too)

<i className="fa fa-linkdin-square" aria-hidden="true" />

should be

<i className="fab fa-linkedin" aria-hidden="true"></i>

Ref:

Hope it helps

closing here

All 3 comments

Hi!

Thanks for being part of the Font Awesome Community.

Please note that the syntax and names have changed between FA4 and FA5. Also, <i> is not a self-closing tag (this is an error in FA4 too)

<i className="fa fa-linkdin-square" aria-hidden="true" />

should be

<i className="fab fa-linkedin" aria-hidden="true"></i>

Ref:

Hope it helps

closing here

hey thanks same issue iam also facing

<i className="fa fa-envelope" aria-hidden="true" />

then i realize
<i className="fas fa-envelope" aria-hidden="true" /> this is correct :D thank you guys

Well,

I've just noticed that the syntax is incorrect.

<i> is not a self closing tag.

I've fixed my previous comment

<i className="fas fa-envelope" aria-hidden="true"></i>
Was this page helpful?
0 / 5 - 0 ratings

Related issues

douglasdeodato picture douglasdeodato  路  3Comments

seppestas picture seppestas  路  3Comments

ghost picture ghost  路  3Comments

rufengch picture rufengch  路  3Comments

petermolnar picture petermolnar  路  3Comments