E5B8 fullstack-react-springboot/section8/eazystore-ui at main · amitpal5577/fullstack-react-springboot · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
 
 

README.md

🌟 Setting Up FontAwesome in Your Vite React App

FontAwesome provides a comprehensive set of icons to enhance your React applications. This guide explains how to integrate and configure FontAwesome in a Vite-powered React app.

Reference official documentation : https://docs.fontawesome.com/web/use-with/react


Prerequisites

Ensure you have the following installed:

  • Node.js (v14 or higher)
  • npm or yarn
  • A Vite React app already set up

🚀 Installation

To install the required FontAwesome packages, run the following commands:

# Core FontAwesome package
npm i --save @fortawesome/fontawesome-svg-core

# Free Solid icons
npm i --save @fortawesome/free-solid-svg-icons

# Free Regular icons
npm i --save @fortawesome/free-regular-svg-icons

# Free Brands icons
npm i --save @fortawesome/free-brands-svg-icons

# React component package
npm i --save @fortawesome/react-fontawesome@latest
0