DEV Community

Discussion on: 5 Essential Practices for Front-End Developers (React Edition)

Collapse
 
sufian profile image
Sufian mustafa

Thank you so much for your thoughts! Your concern about using * to import an entire library is especially valid in large projects. ð︸ You are right; It may cause unnecessary bloat and affect the overall performance of the application.
The importance of the "export package" in my articles is more related to ease of import in project components and aims to improve organization and readability. However, I completely agree that caution should be exercised, especially when dealing with open source libraries.
For large projects, selecting only appropriate elements from the library is a best practice for optimization and keeping content lean and efficient. ðYour comments add value and I welcome the opportunity to delve deeper into this area.