@shish2k/react-faicon
v0.0.2
Published
Because `@fortawesome/react-fontawesome` bloats my final bundle by 80KB, to render <1KB of SVG tags.
Downloads
70
Readme
Tiny FontAwesome Icon Component for React
Because @fortawesome/react-fontawesome bloats my final bundle by 80KB, to render <1KB of SVG tags.
This package has fewer features (no animation, no invert-opacity mode, etc). But if all you want is to render an icon, it does that. It uses the same icon data from @fortawesome/free-solid-svg-icons, so it should be a drop-in replacement for basic use cases.
Example usage:
import { FAIcon } from '@shish2k/react-faicon';
import { faPlay } from '@fortawesome/free-solid-svg-icons';
export function App() {
return <FAIcon icon={faPlay} />;
}Dev Setup
npm install
npm run buildBuild the library in watch mode:
npm run dev