“Gunakan ikon di React” Kode Jawaban

bereaksi ikon

yarn add react-icons
# or
npm install react-icons --save
Hastings Keith

bereaksi ikon

npm install react-icons --save
Grieving Gharial

bereaksi ikon

yarn add react-icons

npm install react-icons --save
Lucas Juan

bereaksi ikon

// ###### Installation ######
   npm install react-icons --save

// ###### Usage ######
import { FaBeer } from 'react-icons/fa';
class Question extends React.Component {
  render() {
    return <h3> Lets go for a <FaBeer />? </h3>
  }
}
Mehedi Islam Ripon

Ikon Bereaksi

import { IconContext } from "react-icons";

<IconContext.Provider value={{ color: "blue", className: "global-class-name" }}>
  <div>
    <FaFolder />
  </div>
</IconContext.Provider>
Rasel Hossain

Gunakan ikon di React

import { FaBeer } from 'react-icons/fa';

class Question extends React.Component {
    render() {
        return <h3> Lets go for a <FaBeer />? </h3>
    }
}
Adorable Armadillo

Jawaban yang mirip dengan “Gunakan ikon di React”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya