A Better Way To Create Vue Components With Props Using TypeScript
The defineProps in Vue can be used in a few ways using TypeScript. In this video I discuss 2 different ways of using props and what I think is best using Zod.
👉 Check out my last video on Styling with Tailwind
👉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:
#reactive-props-destructure
0:00 defineProps problem
0:36 inherit props explained and $attrs
02:00 using defineProps
03:30 adding validations
04:25 using defineProps with TS
06:23 adding in default values with destructuring
08:10 adding in validation with Zod
14 views
13
2
3 months ago 00:08:08 1
A Comedian’s Take on How to Save Democracy | Jordan Klepper | TED
3 months ago 01:12:01 1
Rihanna - Live/Ao Vivo at Rock in Rio Brazil (Complete Show) HD
3 months ago 00:00:15 1
Gold & Black! Is there a better combo? #chicstyle #springfashion #outfitideas #springstyle #ootd
3 months ago 00:04:15 1
Coolio - Gangsta’s Paradise (Official Music Video) [HD] ft. L.V.
3 months ago 00:03:14 1
BAD OMENS x POPPY - (Official Music Video)
3 months ago 00:20:41 1
Katana VS Longsword - The Sad TRUTH!
3 months ago 00:05:59 1
The College Scam
3 months ago 00:15:56 1
Learn to fight with the Greatsword! A tutorial on Figueyredo’s simple rules 1-16
3 months ago 00:15:04 12
Just Got Paid / Dazed and Confused - Joe Bonamassa - Royal Albert Hall - London 040424 4K HDR10+
3 months ago 00:00:41 1
#drawingpencil #learningsketch #5minutedrawing
3 months ago 00:21:51 1
Palermo, Sicily — Italy Walking Tour 4K 🇮🇹
3 months ago 01:13:59 1
Sviatoslav Richter plays Chopin (1960-1988) - 2022 Remastered
3 months ago 00:51:15 1
I built a Ford Mustang GT 500 sports car from a $200 Used Toyota
3 months ago 00:04:36 1
Bad Wolves - Zombie (Official Video)
3 months ago 00:00:59 1
300,000 pts of ORKS vs Chaos - Apocalypse Warhammer 40,000
3 months ago 00:11:34 1
Carl Frampton SHUTS DOWN Barry McGuigan Comments, Talks Tyson Fury vs. Oleksandr Usyk
3 months ago 00:01:23 1
Amber Isle - Announcement Trailer
3 months ago 00:00:41 1
Bad days better with dogs and an ice bath😌 #dogs #icebath #mentalhealth #shorts #foryou #coldplunge
3 months ago 01:02:49 1
The Heart of Reiki by Merlin’s Magic - Relaxing music take you to the deepest centers of energy
3 months ago 00:00:24 1
[edit] Uh Oh 💛 ScaraLumi | Wanderer & Lumine
3 months ago 00:05:09 1
Sinéad O’Connor - Nothing Compares 2 U (Official Music Video) [HD]
3 months ago 00:03:09 1
Ekoh x Lø Spirit- GOOD THINGS
3 months ago 00:07:08 1
THIS Dropshipping Supplier is BETTER than Ali Express