DEV Community

loading...

Vue Component Design Patterns

eulier profile image Eulier Gonzalez ・1 min read

From Vue Mastery.

Benefits

  • Create components easy to use & maintain
  • Avoid common mistakes that makes our components more prone to bugs
  • Feel empowered to make architectural desition that are best for your app.

Tradeoff
For a lot of use case Component Design Patters might works, but for others it can be an antipattern.

So, this are guidelines not rules and it's important to understand the potential benefits that best fit, for your application.

Key features

  • Pros (array and object definition style)
  • Problems of overly relay on Pros to enhance components
  • Slot
  • Slot Techniques

I'll expand more about this topic on following posts.
If you can afford, i'll recommend to invest on Vue Mastery Course.
Don't forget to drink water.
Sleep well.
Take care.

Discussion (0)

pic
Editor guide