yarn add react-icons
npm install react-icons --save
// ###### 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>
}
}
import { IconName } from "react-icons/bs";
import { IconContext } from "react-icons";
<IconContext.Provider value={{ color: "blue", className: "global-class-name" }}>
<div>
<FaFolder />
</div>
</IconContext.Provider>
npm i react-icons
//install package
yarn add react-icons
import { FaBeer } from 'react-icons/fa';
class Question extends React.Component {
render() {
return <h3> Lets go for a <FaBeer />? </h3>
}
}
npm install react-icons --save
# yarn
yarn add react-icons --save
npm install react-icons
// or
yarn add react-icons
import { FaBeer } from 'react-icons/fa';
class Question extends React.Component {
render() {
return <h3> Lets go for a <FaBeer />? </h3>
}
}
npm install react-icons --save
import { FaBeer } from 'react-icons/fa';
<FaBeer />
npm i react-icons
npm i react-icons --save
//Mudassirkhan999 @twitter
import React from "react";
import Icon from "react-crud-icons";
import "../node_modules/react-crud-icons/dist/react-crud-icons.css";
class Example extends React.Component {
render() {
return (
<Icon
name = "edit"
tooltip = "Edit"
theme = "light"
size = "medium"
onClick = { doSomething }
/>
);
}
}
import { IconName } from "react-icons/hi";