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
2 views
52
15
4 weeks ago 00:00:32 1
…but the people are retarded
1 month ago 00:03:28 1
Nemo - The Code (LIVE) | Switzerland🇨🇭| Grand Final | Eurovision 2024
1 month ago 00:03:57 1
Don Toliver - BROTHER STONE (FEAT. KODAK BLACK) [Official Music Video]
1 month ago 00:04:04 5
Mass Effect Trilogy Trailer
1 month ago 00:03:21 1
Billie Eilish, Khalid - lovely
1 month ago 00:08:37 1
How to Draw PEANUT THE SQUIRREL
1 month ago 00:02:02 12
DayZ Update Teaser
2 months ago 01:09:54 1
Find INNER PEACE with Guided Meditation #meditationmusic #sleepmúsica #mindfulness
2 months ago 01:00:50 20
Kamro - Indila ENIGMA (LONG VERCION)
2 months ago 01:00:34 1
Мужские движения | Михаил Пожарский
2 months ago 00:05:09 1
FIT FOR AN AUTOPSY - Red Horizon (OFFICIAL MUSIC VIDEO)
2 months ago 00:00:59 1
Hotels in Neil Island Pearl park BY K RAJA KUMARR 9679555965
2 months ago 00:03:13 2
Benson Boone - Beautiful Things (Official Music Video)
2 months ago 00:11:47 1
ISRAEL Accused of INTIMIDATION & TERROR as Ceasefire Talks Fail!
2 months ago 00:04:38 1
Starbomb - Kiss The Elden Ring (Official Music Video)
2 months ago 00:26:52 1
Why Conservative Families Move To Russia Despite War & Sanctions w/ @Siberian_Freedom
2 months ago 00:35:59 1
JP’s Shocking MedBed Medical Treatment Here’s What Happened
2 months ago 03:33:33 1
Manifest Love & Miracles | 528Hz Positive Change & Self-Love Healing Frequency | Meditation & Sleep
2 months ago 01:16:30 1
#1 Neurosurgeon: How to Manifest Anything You Want & Unlock the Unlimited Power of Your Mind
2 months ago 00:04:58 1
Know Your Place (Pandorium x Solitude) Lyric Video - Will Ryan Originals
2 months ago 00:01:18 35
Arcturus Nova - Ambient Soundscape Kontakt Instrument