+ 1

Npm or direct link

Hello everyone, I am learning react and i have a question that when we use bootstrap, font awesome etc in react project we can use npm install or we can use link in head tag. Both works same. My question is that which one is better for react project and what's the difference between both.

16th Dec 2021, 2:14 PM
Adnan Ur Rehman
Adnan Ur Rehman - avatar
2 Respuestas
+ 2
Well, the version with CDN link is just to test thingswithout the need to install dependencies and setup a project. If you are developing an app, you should install the libs.
16th Dec 2021, 3:06 PM
Anya
Anya - avatar
+ 1
You made it clear for me. Thanks for answering.
16th Dec 2021, 10:03 PM
Adnan Ur Rehman
Adnan Ur Rehman - avatar