Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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>;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #import #font #awesome
ADD COMMENT
Topic
Name
1+4 =