Priority B Rules: Strongly Recommended | Vue.js thumbnail
Priority B Rules: Strongly Recommended | Vue.js
vuejs.org
Whenever a build system is available to concatenate files, each component should be in its own file. Base components (a.k.a. presentational, dumb, or pure components) that apply app-specific styling and conventions should all begin with a specific prefix, such as Base, App, or V. Components that sho
1 Users
0 Comments
7 Highlights
0 Notes

Top Highlights

  • Whenever a build system is available to concatenate files, each component should be in its own file.
  • Base components (a.k.a. presentational, dumb, or pure components) that apply app-specific styling and conventions should all begin with a specific prefix, such as Base, App, or V.
  • Components that should only ever have a single active instance should begin with the The prefix, to denote that there can be only one.
  • This does not mean the component is only used in a single page, but it will only be used once per page.
  • These components never accept any props, since they are specific to your app, not their context within your app. If you find the need to add props, it's a good indication that this is actually a reusable component that is only used once per page for now.

Domain

Ready to highlight and find good content?

Glasp is a social web highlighter that people can highlight and organize quotes and thoughts from the web, and access other like-minded people’s learning.