xxxxxxxxxx
Installation (for standard modern project)
npm install react-icons --save
yarn add react-icons --save
// or
yarn add react-icons
Installation (for meteorjs, gatsbyjs, etc)
npm install @react-icons/all-files --save
react icon
xxxxxxxxxx
import { FaBeer } from 'react-icons/fa';
class Question extends React.Component {
render() {
return <h3> Lets go for a <FaBeer />? </h3>
}
}
xxxxxxxxxx
// ###### 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>
}
}
xxxxxxxxxx
npm install react-icons --save
import { FaBeer } from 'react-icons/fa';
<FaBeer />