npm install --save font-awesome //install font awewsome
import 'font-awesome/css/font-awesome.min.css'; //import in react app
npm i --save @fortawesome/fontawesome-svg-core
//Free icons styles
npm i --save @fortawesome/free-solid-svg-icons
npm i --save @fortawesome/free-regular-svg-icons
npm i --save @fortawesome/react-fontawesome@latest