-
Notifications
You must be signed in to change notification settings - Fork 9
How to add a new icon
Victor Ocnarescu edited this page Oct 3, 2021
·
1 revision
This template includes Fontawesome icons by default.
To include any icon in any of your React components:
- browse the Fontawesome gallery
- copy the code that looks like
<i class="fas fa-icon"></i>
- use the icon in any React component
Example of a profile component with a Fontawesome icon:
const Profile = ({ name }) => {
return (
<div>
<i className="fas fa-user"></i>
<p>{name}</p>
</div>
);
}