Good mornings guys Arch…

less than 1 minute read

Good mornings guys. Architecture question: I have a main app, but within that I need to create some components…should i create a components folder within the apps/myApp folder?

Responses:

[speaking as an Angular user - assuming the same applies to React]

afaik NX doesn’t have strong opinions on the internal structure of our apps. So I would imagine the general consensus is to follow the Angular styleguide which suggests a shared module https://angular.io/guide/styleguide#shared-feature-module

I’ve also worked with teams that don’t use a shared module, but do put all shared components in a folder like you describe and import where needed.

Updated: