Make sure you’re using the latest and greatest by updating your CDN code reference, updating your Font Awesome package via npm, or downloading a fresh copy of Font Awesome. You can check with version an icon was added to on its detail page (e.g. question-circle was added in Verion 1 but last updated in 5.0. 0).
How do I install Fontawesome in react?
Follow the steps below to set up the react-fontawesome component in your project.
- Add SVG Core. First you’ll need to use npm or yarn to install the core package which includes all the utilities to make the icons work:
- Add Icon Packages.
- Add the React Component.
How do I add Font Awesome icons to HTML?
You place Font Awesome icons by using the prefix fa and the icon’s name.
How to use Font Awesome in HTML?
- Copy the entire font-awesome directory into your project.
- In the <head> of your html, reference the location to your font-awesome. min. css. <link rel=”stylesheet” href=”path/to/font-awesome/css/font-awesome.min.css”>
- Check out the examples to start using Font Awesome!