Strive for few dependencies
Every package that you add to your code is yet another dependency to your project.
This dependency is not for free.
You take on the risk of the dependency. Do you know the quality of the code? Do you know the experience of the programmer who made it? Will it be maintained?
Only take dependency on complex functionality, which would take a lot of resources to build yourself.