import fontawesome in react code example Example: font awesome react npm install --save @fortawesome/fontawesome-free