[Vuejs]-Should my header file be called from the 'store' folder in Nuxt instead of the 'components' folder?

0👍

No, the store folder should not contains components. Put your components only in components folder.

The store folder is only for modularizing Vuex.

If you don’t want to write your import statement in each components, you can use nuxt-global-base-components. But I’m not convinced this is a good practice…

Also, be careful with your components name. Header and Footer are html reserved words. Name them AppHeader and AppFooter instead.

Leave a comment