Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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>
  )
}
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #add #icon #react #js
ADD COMMENT
Topic
Name
7+6 =