React Icons |
您所在的位置:网站首页 › reacti › React Icons |
React Icons
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 (for standard modern project)npm install react-icons --saveUsageimport { FaBeer } from 'react-icons/fa';class Question extends React.Component { render() { return Lets go for a ? }}Installation (for meteorjs, gatsbyjs, etc)If your project grows in size, this option is available. This method has the trade-off that it takes a long time to install the package. Suitable for MeteorJS, Gatsbyjs etc. npm install @react-icons/all-files --saveUsageimport { FaBeer } from "@react-icons/all-files/fa/FaBeer";class Question extends React.Component { render() { return Lets go for a ? }}More infoGitHub ↗ |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |