This Vue 3 Component Pattern is Fire 🔥🔥🔥 (and you should use it!)
Vue has some really neat component patterns. Let’s take a look at a common one how it deals with state. In this tutorial we’ll look at the controlled props pattern. This pattern uses props and allows you to easily reuse complext components in Vue. We’’ll also look at defineExpose
👉 Check out my last video on Vite tips!
👉Sign up for my mailing list and get neat stuff!
👉 Need some help with a project, level up your skills, React, Next, Vue, or Nuxt? Check out my 1-on-1 mentoring!
Links:
0:00 Patterns in Vue
0:23 What this app does
01:28 Refactor to use hidden prop
03:18 A look at defineExpose
06:18 Why you may not want to sue defineExpose
07:05 Controlled Props (thanks Michael)
19 views
15
2
2 months ago 00:00:54 1
PARIS 17EME - APPARTEMENT A VENDRE - 1 347 000 € - 134 m² - 3 pièces
2 months ago 00:00:39 1
PARIS 7ÈME - APPARTEMENT A VENDRE - 3 170 000 € - 162 m² - 6 pièce(s)