Answers for "how to install font awesome icons in react js"

3

installing and using font awesome icons in react

// install font-awesome module
npm install --save font-awesome

// import font-awesome to your index.js file
import 'font-awesome/css/font-awesome.min.css'

// use icon like this
<i className="fa fa-spinner fa-spin">no spinner but why</i>
Posted by: Guest on July-07-2021
6

npm font awesome

npm install --save font-awesome
Posted by: Guest on June-18-2020

Code answers related to "how to install font awesome icons in react js"

Browse Popular Code Answers by Language