DEV Community

Discussion on: How to Easily Reuse Components Across Projects and Repositories

Collapse
 
dennisk profile image
Dennis Keirsgieter

Do i understand correctly that if i use 10 components in my project that it's 10 extra dependency's in my package.json?

Collapse
 
phillyvanilly profile image
philly-vanilly • Edited

if you have only one project you can have one, single monorepo and import modules directly without referencing any external NPM lib. Only then you would need to have dependencies in package.json, yes. How many, is up to you, you can also provide barrel modules that import other modules, if all your components (or authentication modules or something else) are imported together