Answers for "fontawesome install react"

3

installing and using font awesome icons in react

// install font-awesome module
npm install --save font-awesome

// import font-awesome to your index.js file
import 'font-awesome/css/font-awesome.min.css'

// use icon like this
<i className="fa fa-spinner fa-spin">no spinner but why</i>
Posted by: Guest on July-07-2021
17

react fontawesome

npm i --save @fortawesome/fontawesome-svg-core
npm install --save @fortawesome/free-solid-svg-icons
npm install --save @fortawesome/react-fontawesome

npm install --save @fortawesome/free-brands-svg-icons
npm install --save @fortawesome/free-regular-svg-icons
Posted by: Guest on February-06-2021
2

how to use react-fontawesome

npm install --save @fortawesome/free-brands-svg-icons  npm install --save @fortawesome/free-regular-svg-icons
Posted by: Guest on December-29-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language