From what I've been able to conclude there is no difference in either so there should be no difference in performance.
react-icons:
- version: v4.1.0
- published two months ago
- command:
npm i react-icons
@react-icons/all-files
- version: v4.1.0
- published two months ago
- command:
npm i @react-icons/all-files
both reference the same Github repo and in repo packages reference the file package.json is identical:
package.json:
{
"name": "@react-icons/all-files",
"version": "4.1.1-snapshot.0",
"description": "SVG React icons of popular icon packs using ES6 imports",
"author": "Goran Gajic",
"contributors": [
"kamijin_fanta <kamijin@live.jp>"
],
"license": "MIT",
"main": "lib",
"types": "./lib/esm/index.d.ts",
"sideEffects": false,
"repository": {
"type": "git",
"url": "git+ssh://git@github.com:react-icons/react-icons.git"
},
"bugs": {
"url": "https://github.com/react-icons/react-icons/issues"
},
"homepage": "https://github.com/react-icons/react-icons#readme",
"peerDependencies": {
"react": "*"
}
}
but when referencing the documnetation is states there should be certain ones used:
for standard modern project:
npm install react-icons --save
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 --save
when it comes to the command:
import { FaPercent, FaCapsules, FaRing } from "react-icons/fa"
that is in reference to font-awesome's library. If you reference the installed directory in node_modules all icon packages are in a two character directory:
ai
bi
bs
cg
di
fa
etc.
etc.
If you want to reference any other icons you would just append the two digit character set, example:
import { IconName } from "react-icons/gr";
for Grommet Icons