Answers for "how to import font awesome icon in react yarn"

1

react import font awesome

npm install --save font-awesome
import '../node_modules/font-awesome/css/font-awesome.min.css'; 
or
import 'font-awesome/css/font-awesome.min.css';
Don't forget to use className as attribute
 render: function() {
    return <div><i className="fa fa-spinner fa-spin">no spinner but why</i></div>;
}
Posted by: Guest on August-11-2021

Code answers related to "how to import font awesome icon in react yarn"

Code answers related to "Javascript"

Browse Popular Code Answers by Language