Answers for "import all icons react/icons"

3

how to add react icons using npm

npm install react-icons --save

# yarn 
yarn add react-icons
Posted by: Guest on August-09-2021
0

USE ICONS IN REACT

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

class Question extends React.Component {
    render() {
        return <h3> Lets go for a <FaBeer />? </h3>
    }
}
Posted by: Guest on September-30-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language