Include popular icons in your React projects easily with react-icons, which utilizes ES6 imports that allows you to include only the icons that your project is using.
Installation
npm install react-icons --save
Usage
Import icon from the collection
Syntax
import { <icon_name> } from "react-icons/<collection_name>";
<icon_name/>
Example
import { VscAdd } from "react-icons/vsc";
<VscAdd className='button' onClick={() => { console.log('Button with icon') }}></VscAdd>
React Icons: https://react-icons.github.io/react-icons/