Answers for "how to use icon in react"

6

react icon

npm install react-icons --save
Posted by: Guest on August-20-2020
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
0

how to add icon in react js

import {FaTwitter} from "react-icons/fa"
import {IconContext} from "react-icons"

const Bare = () => {
  return (
   <IconContext.Provider value={{ style: {fontSize: '30px', color: "rgb(0, 123, 255)"}}}>
       <div>
         <FaTwitter />
       </div>
    </IconContext.Provider>
  )
}
Posted by: Guest on November-04-2021

Code answers related to "how to use icon in react"

Code answers related to "Javascript"

Browse Popular Code Answers by Language