DEV Community

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

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