Topics

On this page

Last updated on Dec 5, 2025

Dependency management

Managing dependencies responsibly is essential for maintaining a secure, stable, and maintainable React project. Every package added introduces potential risks, in terms of security, performance, and long-term maintenance. This section outlines how we evaluate, adopt, and maintain third-party libraries.

1. Package selection: criteria for choosing third-party libraries

Functionality and necessity

Ask questions like:

Maintenance and activity

License

Transitive Dependencies

2. Dependency updates: Keeping dependencies current safely

Use a lock file

Automate dependency scanning and update PRs

Upgrade strategy

3. Upgrading React versions

React upgrades can introduce breaking changes; plan upgrades carefully:

4. Upgrading other dependencies (e.g., Tailwind, Next.js)

5. Best practices summary


Credits

Authored by Sayed Sayed Sayed Taqui Director of Engineering – React , Imran Imran Imran Sayed Senior WordPress Engineer , Ayush Ayush Ayush Nirwal Senior Software Engineer , Amoghavarsha Amoghavarsha Amoghavarsha Kudaligi Senior Software Engineer , Mayank Mayank Mayank Rana Senior Software Engineer