use fontawesome with <i> in react js code example Example: font awesome react npm install --save @fortawesome/fontawesome-free