0 votes
in ReactJS by

How to use Font Awesome icons in React?

1 Answer

0 votes
by

The below steps followed to include Font Awesome in React:

  1. Install font-awesome:
$ npm install --save font-awesome
  1. Import font-awesome in your index.js file:
import 'font-awesome/css/font-awesome.min.css'
  1. Add Font Awesome classes in className:
render() {
  return <div><i className={'fa fa-spinner'} /></div>
}

Related questions

0 votes
asked Dec 8, 2020 in ReactJS by SakshiSharma
0 votes
0 votes
asked Mar 1, 2020 in ReactJS by RShastri
...