+ 3

How can i use icon components from react-icons/fa in sololearn? [Solved]

https://code.sololearn.com/WQSVV9D1ww32/?ref=app

17th Sep 2020, 11:34 PM
Abhay
Abhay - avatar
4 Answers
+ 2
Which icon do you want to use? A Fontawesome one? To use in SoloLearn, import a Fontawesome cdn instead of a React-icons cdn.
18th Sep 2020, 8:27 AM
Gordon
Gordon - avatar
+ 3
Installation npm install react-icons --save Usage import { FaBeer } from 'react-icons/fa'; class Question extends React.Component { render() { return <h3> Lets go for a <FaBeer />? </h3> } } https://react-icons.github.io/
18th Sep 2020, 8:26 AM
Gordon
Gordon - avatar
+ 1
CalviŐČ Gordon Pls help!
18th Sep 2020, 7:50 AM
Abhay
Abhay - avatar
0
Gordon ty ,I was wondering how could I use font awesome from react icons in sololearn but seems like I need to use fa cdn
18th Sep 2020, 8:58 AM
Abhay
Abhay - avatar