How to use font awewsome in react app
npm install --save font-awesome //install font awewsome
import 'font-awesome/css/font-awesome.min.css'; //import in react app
How to use font awewsome in react app
npm install --save font-awesome //install font awewsome
import 'font-awesome/css/font-awesome.min.css'; //import in react app
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>;
}
how to use react-fontawesome
npm install --save @fortawesome/free-brands-svg-icons npm install --save @fortawesome/free-regular-svg-icons
use font awsome in react
npm install @fortawesome/fontawesome-svg-core @fortawesome/free-solid-svg-icons @fortawesome/react-fontawesome
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us