cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Import path

lucas_hocker
Dynatrace Helper
Dynatrace Helper

Is there a reason to prefer more specific imports @dynatrace/strato-compontents-preview/layouts instead of just @dynatrace/strato-components-preview? It seems either works, but examples tend to use more specific paths. Just wondering if there’s a reason…

1 REPLY 1

imsingh
Dynatrace Helper
Dynatrace Helper

Hi @lucas_hocker , technically speaking, there is no difference between the two imports. Because imports from @dynatrace/strato-components-preview are re-exports of all other packages like the layout and so on.

My personal preference is to use @dynatrace/strato-components-preview because then you don't have to know the underlined folder names, potentially saving you from headaches if the internal path changes.

Featured Posts