Renderless Component & Type Safety (Advent of Vue #17)

  Рет қаралды 1,182

Lachlan Miller

Lachlan Miller

Жыл бұрын

My solution to the 17th and final Advent of Vue challenge! Good one to end on - renderless components are a great example of separation of concerns. We also talk about pushing logic out of a component into a stateless function.
I also talk about renderless components in my book: lachlan-miller.me/design-patt...
👉 Link to algorithm www.movable-type.co.uk/scripts...
👉 Haversine formula en.wikipedia.org/wiki/Haversi...
🎄 Advent of Vue: adventofvue.com/
💻 Code: github.com/lmiller1990/aov202...
🐦 Keep up with me on Twitter! / lachlan19900
If you like my teaching style, I have a book and two courses!
👀 (Book) Design Patterns for Vue.js: lachlan-miller.me/design-patt... (YT_5_OFF for $5 off)
👉 (Course) Vue.js: The Composition API: www.udemy.com/course/vuejs-3-...
🖖 (Course) Complete Vue.js 3: www.udemy.com/course/complete...

Пікірлер: 5
@prashlovessamosa
@prashlovessamosa Жыл бұрын
Your Vue testing playlist is awesome i learn a lot thank you.
@michaelm8044
@michaelm8044 Жыл бұрын
I really enjoyed the refactor you did putting it all in one file. Thanks again for another great video. Super easy to follow and comprehensive as usual!
@LachlanMiller
@LachlanMiller Жыл бұрын
Thanks! The real solution would be to stop using imperial units, but that's a refactor that will take several centuries, so the best we can do for now is abstract it away into a function 🙃
@michaelm8044
@michaelm8044 Жыл бұрын
@@LachlanMiller Lol true that
@huslerbling
@huslerbling 9 ай бұрын
I’m at bit confused as to why you opted for a headless component instead of a hook. The component you created does nothing but render whatever children it receives. It contains no other markup or styles. I seem to be missing the point here 🤔
Composables and Functional Logic (Advent of Vue #6)
25:49
Lachlan Miller
Рет қаралды 1,6 М.
TDD, TypeScript Tricks and Sorting (Advent of Vue #9)
12:38
Lachlan Miller
Рет қаралды 1,6 М.
КАРМАНЧИК 2 СЕЗОН 5 СЕРИЯ
27:21
Inter Production
Рет қаралды 540 М.
КАХА и Джин 2
00:36
К-Media
Рет қаралды 3,8 МЛН
ДЕНЬ РОЖДЕНИЯ БАБУШКИ #shorts
00:19
Паша Осадчий
Рет қаралды 2,4 МЛН
[柴犬ASMR]曼玉Manyu&小白Bai 毛发护理Spa asmr
01:00
是曼玉不是鳗鱼
Рет қаралды 43 МЛН
Vue.js Advanced Data Provider Component Patterns Explained
14:07
Program With Erik
Рет қаралды 22 М.
Arbitrary Values & Properties in Tailwind (Advent of Vue #11)
12:46
The Heart of React || How React works under the hood
10:32
AI Bruise
Рет қаралды 9 М.
Type Safe Custom Directives (Advent of Vue #16)
7:41
Lachlan Miller
Рет қаралды 615
Should You Use Vue RENDERLESS COMPONENTS?
4:20
LearnVue
Рет қаралды 22 М.
How Hot Module Replacement REALLY Works | JS Toolchain From Scratch
29:05
Simple Functions and Conditionals (Advent of Vue #2)
9:11
Lachlan Miller
Рет қаралды 793
The Difference Between Vue and React
10:27
Lachlan Miller
Рет қаралды 28 М.
Shuffling Arrays and a Map Trick (Advent of Vue #14)
13:52
Lachlan Miller
Рет қаралды 544
#miniphone
0:18
Miniphone
Рет қаралды 10 МЛН
Карточка Зарядка 📱 ( @ArshSoni )
0:23
EpicShortsRussia
Рет қаралды 71 М.
Индуктивность и дроссель.
1:00
Hi Dev! – Электроника
Рет қаралды 1,5 МЛН
How Neuralink Works 🧠
0:28
Zack D. Films
Рет қаралды 31 МЛН