1
00:00:02,880 --> 00:00:06,160
Well, if you're just joining us,
welcome back perfect peeps. 

2
00:00:06,360 --> 00:00:10,240
I don't have a countdown for 
code with coding Cat. 

3
00:00:10,280 --> 00:00:11,840
It's one of the things on the 
list. 

4
00:00:11,840 --> 00:00:15,680
So we are just jumping directly 
right into it. 

5
00:00:16,000 --> 00:00:19,360
We're just chatting about Thomas
is not feeling well, so 

6
00:00:19,360 --> 00:00:22,400
hopefully his his voice holds 
out for us. 

7
00:00:23,160 --> 00:00:26,320
But he's telling us that he went
to Prague for his off site, 

8
00:00:26,320 --> 00:00:30,600
which is super exciting. 
I was in Prague probably seven 

9
00:00:30,600 --> 00:00:34,480
years ago pre pandemic so I'm 
glad to hear like things are 

10
00:00:34,480 --> 00:00:37,240
good in Prague. 
Yeah, I mean, it was pretty 

11
00:00:37,240 --> 00:00:39,640
good. 
Lots of snow, lots of people, 

12
00:00:39,880 --> 00:00:42,600
quite touristy. 
Lots of delicious food too. 

13
00:00:42,600 --> 00:00:44,560
It was awesome. 
Lots of snow. 

14
00:00:45,480 --> 00:00:50,080
And yeah. 
I mean, it was super exciting 

15
00:00:50,080 --> 00:00:54,840
for me because I've already 
like, I never saw it snowing, 

16
00:00:54,840 --> 00:00:57,800
only when I was a really little 
kid and I don't remember it so. 

17
00:00:57,920 --> 00:00:59,440
That is Oh my gosh. 
So it. 

18
00:00:59,480 --> 00:01:00,720
Was oh, I bet that was 
fantastic. 

19
00:01:00,720 --> 00:01:03,680
Miracle. 
It's very novel at first, like 

20
00:01:03,680 --> 00:01:06,200
when you get to see it as an 
outsider and you don't have to 

21
00:01:06,200 --> 00:01:09,440
live in it and like plow your 
driveway and. 

22
00:01:10,040 --> 00:01:12,240
Get your part. 
That's what I was saying like oh

23
00:01:12,280 --> 00:01:16,560
as a terrorist this is great but
a bad like day-to-day it must 

24
00:01:16,560 --> 00:01:18,760
suck especially because it's so 
hard to walk. 

25
00:01:18,760 --> 00:01:21,960
I almost fell a couple of times.
My girlfriend did fall on the 

26
00:01:21,960 --> 00:01:23,400
first day. 
Oh no. 

27
00:01:23,640 --> 00:01:26,080
Yeah. 
That I live in has this really 

28
00:01:26,080 --> 00:01:28,840
cool thing called a snowmelt 
system downtown. 

29
00:01:28,840 --> 00:01:34,200
So it's the largest municipality
owned snowmelt in the country. 

30
00:01:34,480 --> 00:01:39,560
And so all of our sidewalks are 
heated by underground hot water.

31
00:01:40,280 --> 00:01:43,520
And they have a cool little like
fireplace thing, right, that you

32
00:01:43,520 --> 00:01:46,760
can like collect around. 
There was a whole article in. 

33
00:01:46,800 --> 00:01:48,880
Michigan. 
Holland being like the 

34
00:01:48,880 --> 00:01:51,920
quintessential Christmas town 
because you can come here and 

35
00:01:51,920 --> 00:01:54,720
shop and like, it's like being 
in a holiday movie. 

36
00:01:55,320 --> 00:01:57,600
Oh, that's awesome. 
So that's on, that's on 8th 

37
00:01:57,600 --> 00:01:59,840
Street, right? 
Does that go to the whole like 

38
00:01:59,840 --> 00:02:01,760
length of downtown? 
It does. 

39
00:02:01,760 --> 00:02:08,560
Now it goes all of 8th St. 
I don't know if they've expanded

40
00:02:08,560 --> 00:02:10,960
it off to the side streets but 
for sure 8th St. 

41
00:02:10,960 --> 00:02:13,000
Like the main downtown shopping 
area. 

42
00:02:13,200 --> 00:02:16,320
I never go downtown though, it's
too boutiquey for me except to 

43
00:02:16,320 --> 00:02:17,280
eat. 
I go down there to. 

44
00:02:17,320 --> 00:02:18,880
Eat. 
Yeah, Yeah. 

45
00:02:18,880 --> 00:02:21,600
I haven't been in a while, but 
usually like New Holland Brewing

46
00:02:21,600 --> 00:02:23,320
or Carrah or something like 
that. 

47
00:02:23,720 --> 00:02:26,840
There used to be a You've never 
had the Carrah. 

48
00:02:27,160 --> 00:02:29,040
Oh, my gosh. 
I guess I know where we're doing

49
00:02:29,040 --> 00:02:30,840
lunch. 
Next time their cheese sticks 

50
00:02:30,840 --> 00:02:33,520
are out of this world. 
I should go cheese. 

51
00:02:33,520 --> 00:02:34,840
Loafs. 
Irish. 

52
00:02:35,280 --> 00:02:36,560
Food. 
I've just. 

53
00:02:37,040 --> 00:02:42,760
So good there there was this 
cool little, I'll call it a 

54
00:02:42,760 --> 00:02:45,680
Speakeasy, even though it's 
probably not a Speakeasy, but a 

55
00:02:45,680 --> 00:02:49,680
lounge that's further down 
towards where they do the 

56
00:02:49,680 --> 00:02:51,640
farmers market. 
It's pretty incredible. 

57
00:02:52,760 --> 00:02:54,720
What's a Speakeasy? 
Do you know where? 

58
00:02:54,720 --> 00:02:56,920
The oh, I know what you're 
talking about, the bar that 

59
00:02:56,960 --> 00:02:59,560
opened, it's like right by 
Hopcat. 

60
00:03:00,520 --> 00:03:03,080
Yeah, by the movie. 
Theater right in that area. 

61
00:03:04,320 --> 00:03:05,360
Cool. 
Sorry. 

62
00:03:05,400 --> 00:03:06,640
A Speakeasy. 
Yeah. 

63
00:03:07,000 --> 00:03:12,400
So I think this was during 
Prohibition era era that it 

64
00:03:12,400 --> 00:03:15,640
happened, at least in the USI 
don't, I don't, I don't know if 

65
00:03:15,680 --> 00:03:17,280
other countries have 
speakeasies. 

66
00:03:18,440 --> 00:03:23,920
So like back then, if you were 
drinking illegally, essentially 

67
00:03:23,920 --> 00:03:28,680
you would have to go into like a
door and like you'd have to give

68
00:03:28,680 --> 00:03:31,720
a code or like you'd have to 
know the secret to get in right.

69
00:03:34,480 --> 00:03:39,720
And most of the time these 
places are like kind of hidden 

70
00:03:39,720 --> 00:03:42,560
gems, if you will. 
So like you go into a basement 

71
00:03:42,560 --> 00:03:44,400
that you think's a basement, all
of a sudden it's like this 

72
00:03:44,400 --> 00:03:48,680
beautiful lounge or like you can
sit in in chairs that are 

73
00:03:48,680 --> 00:03:51,480
awesome and. 
But they do fancy cocktails 

74
00:03:51,480 --> 00:03:53,200
there, right? 
They do like the smoking 

75
00:03:53,200 --> 00:03:55,760
cocktail and. 
That looks like a thing out of a

76
00:03:55,800 --> 00:03:59,840
James Bond movie I like. 
It I've been there one time. 

77
00:04:00,680 --> 00:04:04,600
So I, I went to a Speakeasy once
it's, it's, it actually burned 

78
00:04:04,600 --> 00:04:10,720
down unfortunately, but it was 
hidden in this Mexican like 

79
00:04:11,280 --> 00:04:14,480
restaurant. 
And the way you entered like 

80
00:04:14,760 --> 00:04:17,079
it's very like, oh, this isn't 
fancy at all. 

81
00:04:17,079 --> 00:04:20,240
There's nothing going on. 
You go into this hallway and 

82
00:04:20,240 --> 00:04:22,640
there was a machine that you can
buy like chips from. 

83
00:04:22,960 --> 00:04:27,800
And if you pick the Pringles 
one, all of a sudden you push 

84
00:04:27,840 --> 00:04:30,240
the button and the door would 
go. 

85
00:04:31,440 --> 00:04:33,200
And that is very. 
Magical. 

86
00:04:33,240 --> 00:04:37,080
It was amazing. 
Like if I did someone legit try 

87
00:04:37,200 --> 00:04:43,640
just to get some like oh what's 
going on I'm not entering there.

88
00:04:45,720 --> 00:04:46,640
That's crazy. 
Yeah. 

89
00:04:46,640 --> 00:04:49,800
So I love those little places, 
even if it's not to drink if if 

90
00:04:49,800 --> 00:04:52,800
it's just like a hidden like 
place to go, like get food or 

91
00:04:52,800 --> 00:04:54,360
hang out. 
I just, I love them. 

92
00:04:56,360 --> 00:05:00,160
So Thomas, you've been, you've 
been building this thing. 

93
00:05:00,560 --> 00:05:03,520
It's called, it was called 
something else before, right? 

94
00:05:03,600 --> 00:05:05,880
What were you calling it, like 
radical or something? 

95
00:05:06,120 --> 00:05:10,560
Yeah, Mel 2Y isn't. 
It is and it isn't the successor

96
00:05:10,560 --> 00:05:13,160
of Reddick spelled. 
But yeah, that was Reddick 

97
00:05:13,160 --> 00:05:15,320
spelled before. 
It's kind of funny because we 

98
00:05:15,320 --> 00:05:19,840
just talked to Pedro Duarte this
morning and the podcast isn't 

99
00:05:19,840 --> 00:05:21,880
out, but we just did that this 
morning. 

100
00:05:21,880 --> 00:05:25,160
So we were talking about and he 
he said Radix. 

101
00:05:25,680 --> 00:05:27,240
Radix. 
How he pronounced it. 

102
00:05:27,960 --> 00:05:31,000
OK, OK. 
Yeah, it's kind of one of those 

103
00:05:31,000 --> 00:05:33,640
gift jif things, you know? 
Yeah, Radix. 

104
00:05:33,680 --> 00:05:35,040
Radix. 
One of the. 

105
00:05:35,040 --> 00:05:37,280
Creators was Irish. 
Is that what he said? 

106
00:05:39,280 --> 00:05:42,640
Yeah, I think the Irish, yeah. 
Irish and that was how they 

107
00:05:42,640 --> 00:05:45,400
pronounced it. 
And so it kind of stuck with 

108
00:05:45,400 --> 00:05:48,120
him, I guess. 
I don't know, but I I thought 

109
00:05:48,120 --> 00:05:52,720
that was cool 'cause you did 
radix radix felts after that and

110
00:05:52,720 --> 00:05:56,080
then that was kind of the 
predecessor to what is now melt,

111
00:05:56,160 --> 00:05:57,600
right? 
Exactly, exactly. 

112
00:05:57,600 --> 00:05:59,960
That's so fun. 
I would love to to talk to him 

113
00:05:59,960 --> 00:06:01,680
someday. 
That must have been amazing. 

114
00:06:02,280 --> 00:06:05,960
Did you when I was when I was at
app right, you guys were still 

115
00:06:05,960 --> 00:06:10,840
working on or I think they had 
released pink design system or? 

116
00:06:10,840 --> 00:06:13,000
Pink Yeah, we still have. 
Yeah, we still have that. 

117
00:06:13,600 --> 00:06:16,160
Did you help out build that or I
don't remember? 

118
00:06:16,480 --> 00:06:18,920
Yes, kind of. 
It was mostly the website who 

119
00:06:18,920 --> 00:06:23,440
mostly maintains Bing design 
since it's it's ACSS framework 

120
00:06:23,520 --> 00:06:26,280
rather than component library or
anything like that. 

121
00:06:26,280 --> 00:06:31,800
It's a large sector. 
Our CSS architect, me and the 

122
00:06:31,800 --> 00:06:34,760
other front end developers do 
sell modifications here and 

123
00:06:34,760 --> 00:06:36,200
there, but it's mostly all here.
Nice. 

124
00:06:37,600 --> 00:06:42,800
Yeah, so I'm I am looking to 
like making framework adapters 

125
00:06:42,800 --> 00:06:45,360
for the components because right
now it's just CSS and then 

126
00:06:45,520 --> 00:06:48,760
markup, right? 
But I'm trying to make it so 

127
00:06:48,760 --> 00:06:51,080
that we actually have the 
components themselves so we 

128
00:06:51,080 --> 00:06:53,120
don't have to copy paste between
projects. 

129
00:06:53,320 --> 00:06:54,680
But right now, it's all there 
is. 

130
00:06:55,640 --> 00:06:58,920
And so like with all of that 
experience that you've had, like

131
00:06:59,280 --> 00:07:02,400
what what makes Melt kind of 
different? 

132
00:07:02,400 --> 00:07:04,120
And I'm going to show the 
website while we're chatting. 

133
00:07:04,520 --> 00:07:09,600
Yeah, I think they're they're 
actually the opposite of on the 

134
00:07:09,920 --> 00:07:14,880
component library Spectrum Pink 
design is like styles and that's

135
00:07:14,880 --> 00:07:17,000
it. 
Let's say styles that you apply 

136
00:07:17,000 --> 00:07:19,040
to your markup. 
It doesn't provide you any 

137
00:07:19,040 --> 00:07:22,120
markup, any JavaScript match the
complete opposite. 

138
00:07:22,120 --> 00:07:25,120
It doesn't provide you any 
styles or markup. 

139
00:07:25,120 --> 00:07:27,520
It provides you all with the 
functionality. 

140
00:07:28,560 --> 00:07:31,640
So they really are opposites in 
that sense. 

141
00:07:31,880 --> 00:07:35,200
That's really interesting to me.
So I'm, I'm eager to like break 

142
00:07:35,200 --> 00:07:38,240
this out. 
Do you have kind of an idea of 

143
00:07:38,240 --> 00:07:42,760
something to build? 
I mean, yeah, we normally what 

144
00:07:42,760 --> 00:07:47,240
what I do to showcase it. 
Sometimes I just build a builder

145
00:07:47,240 --> 00:07:50,560
from scratch just I'll I'd love 
to. 

146
00:07:51,680 --> 00:07:53,920
See build. 
A builder from scratch. 

147
00:07:54,680 --> 00:07:58,680
It sounds very like Inception Y 
like high, high level of like a 

148
00:07:58,680 --> 00:08:01,680
builder, but that's what they 
call their like components. 

149
00:08:01,680 --> 00:08:05,600
And it's quintessentially like 
the headless library. 

150
00:08:05,600 --> 00:08:09,000
Like you don't need to. 
It's not the styles you would 

151
00:08:09,000 --> 00:08:13,480
add on something like Chad CN or
just something on top to do the 

152
00:08:13,480 --> 00:08:17,400
styles but and Chad CN's belt is
actually using melt. 

153
00:08:17,960 --> 00:08:21,160
Exactly. 
Actually set CM svelt actually 

154
00:08:21,160 --> 00:08:24,760
uses bits, which uses melt. 
It's. 

155
00:08:24,760 --> 00:08:27,920
Basically so. 
Hunter help Hunter or Hunter 

156
00:08:27,920 --> 00:08:33,600
byte helps out a ton with melt 
UI and then what he did. 

157
00:08:33,840 --> 00:08:37,039
Melt doesn't ship out spelt 
component, it ship out just 

158
00:08:37,039 --> 00:08:40,520
these little functions that in 
turn return some stars that you 

159
00:08:40,520 --> 00:08:43,120
can sprinkle around your 
elements and stuff like that. 

160
00:08:43,679 --> 00:08:47,520
We call them builders because 
you're you normally are going to

161
00:08:47,520 --> 00:08:49,520
create build components out of 
them. 

162
00:08:49,920 --> 00:08:52,800
And so that's what Hunter did. 
He created a library that has 

163
00:08:52,800 --> 00:08:55,360
all the components build it out 
with Melt. 

164
00:08:55,720 --> 00:08:59,440
The reason he did that is 
because for most people, it's 

165
00:09:00,000 --> 00:09:03,880
much more ergonomic or it's what
they're used to, right? 

166
00:09:03,880 --> 00:09:08,240
Using components directly. 
It can be a little less flexible

167
00:09:08,240 --> 00:09:12,600
on some on some ends, but most 
of the time you're not going to 

168
00:09:12,600 --> 00:09:14,640
need any more than that. 
So yeah, is. 

169
00:09:14,680 --> 00:09:15,960
That what? 
Bit is. 

170
00:09:16,520 --> 00:09:21,640
Yeah, exactly. 
OK I had never I I saw that and 

171
00:09:21,640 --> 00:09:24,840
I was thinking of bit dot dev 
which is a way to pull in 

172
00:09:24,840 --> 00:09:27,840
components and I thought he was 
using bit dot dev but. 

173
00:09:28,000 --> 00:09:31,240
Bit is. 
A library hunter created. 

174
00:09:31,480 --> 00:09:32,600
Exactly. 
Exactly. 

175
00:09:32,600 --> 00:09:35,160
Yeah. 
OK, I'm gonna so I have been 

176
00:09:35,160 --> 00:09:36,320
like I will. 
Clone. 

177
00:09:36,600 --> 00:09:39,640
Your guys repository and I will 
just look through the source 

178
00:09:39,640 --> 00:09:42,440
code like looking for ideas for 
my components and like how 

179
00:09:42,440 --> 00:09:46,080
you're doing things and melt is 
like way beyond like anything I 

180
00:09:46,080 --> 00:09:49,160
can understand because of these 
builders that I'm hoping we get 

181
00:09:49,160 --> 00:09:51,320
to see soon we're gonna. 
We're gonna understand it right 

182
00:09:51,360 --> 00:09:55,520
now as we. 
But for shed CN it's like he 

183
00:09:55,520 --> 00:09:58,840
pulls in the library bits and 
I'm like that doesn't show me 

184
00:09:58,840 --> 00:10:00,560
the root component, I can't see 
it. 

185
00:10:00,560 --> 00:10:03,280
So now I have to go find bits. 
Yeah, exactly. 

186
00:10:03,440 --> 00:10:06,080
You could. 
But the fun thing about shed CN 

187
00:10:06,560 --> 00:10:10,360
approach, the shed CN approach 
is that you can if you want to 

188
00:10:10,360 --> 00:10:13,080
use bits. 
But if you like no I want more 

189
00:10:13,080 --> 00:10:16,560
control than what bits gives me,
you can just say OK let me copy 

190
00:10:16,560 --> 00:10:19,840
the mail to I example just for 
this I'm not installing shed CN 

191
00:10:19,840 --> 00:10:22,200
spelt, I'm copying it. 
With a SMI. 

192
00:10:22,200 --> 00:10:25,600
So I can I own the component. 
So if you want to, there are 

193
00:10:25,600 --> 00:10:28,400
people that do that that you 
sets in and then switch it off 

194
00:10:28,440 --> 00:10:31,280
with melt or anything like that.
It would be cool to have the 

195
00:10:31,280 --> 00:10:34,720
option maybe to have a cell I 
like with bits with melt. 

196
00:10:35,080 --> 00:10:37,720
I'm going to pitch that idea if.
You'll make this full screen so 

197
00:10:37,760 --> 00:10:41,000
I can watch the builder in 
action. 

198
00:10:41,480 --> 00:10:43,120
Yeah. 
Let's do this. 

199
00:10:43,440 --> 00:10:45,000
Are you guys ready? 
Yeah. 

200
00:10:45,480 --> 00:10:48,920
All right, talking. 
How should we do it? 

201
00:10:49,520 --> 00:10:52,320
So basically, basically the way 
that code with code and get 

202
00:10:52,320 --> 00:10:55,040
works. 
So you're gonna tell me how like

203
00:10:55,160 --> 00:10:58,680
a person would use this and I'm 
gonna start typing and make 

204
00:10:58,680 --> 00:11:01,440
something. 
Wait, so do you want me to show 

205
00:11:01,440 --> 00:11:04,160
you how to use melt or how to 
create a builder from scratch? 

206
00:11:04,160 --> 00:11:07,200
Oh my gosh. 
Do a builder first and then 

207
00:11:07,200 --> 00:11:09,080
whatever. 
Sounds like we want to do a 

208
00:11:09,080 --> 00:11:11,600
builder. 
OK, so doing a builder normally 

209
00:11:11,600 --> 00:11:14,000
with melt we already have all 
these helpers and stuff like 

210
00:11:14,000 --> 00:11:16,640
that, so it can be a bit 
daunting, but you don't need 

211
00:11:16,640 --> 00:11:22,000
anything any of that. 
In the end, builders are 

212
00:11:22,000 --> 00:11:26,360
composed of attributes like HTML
attributes that's best in the 

213
00:11:26,360 --> 00:11:32,720
component and spelt actions to 
actually put in event listeners 

214
00:11:32,720 --> 00:11:34,040
and have some control of the 
node. 

215
00:11:34,440 --> 00:11:38,880
So First off we need a spelt 
project so I would just do NPM 

216
00:11:38,880 --> 00:11:43,040
create spelt at latest so we get
the latest version. 

217
00:11:47,080 --> 00:11:50,320
Yeah, Mike, can I spell? 
Is it going to message? 

218
00:11:50,840 --> 00:11:53,320
Is it going? 
To ask you about 5 or is it just

219
00:11:53,320 --> 00:11:56,920
automatically 5? 
It asks you as it asks you. 

220
00:11:58,280 --> 00:12:02,920
I don't know, melt again? 
I mean, you could go OK, do a 

221
00:12:02,920 --> 00:12:05,080
skeleton project. 
I always do that I think. 

222
00:12:06,440 --> 00:12:09,240
TypeScript please. 
Please. 

223
00:12:09,880 --> 00:12:13,600
Not ajs dot fan I'm gathering. 
SOT 5, it depends. 

224
00:12:13,600 --> 00:12:15,600
We can do SOT 5, we can do SOT 
4. 

225
00:12:15,680 --> 00:12:17,760
It's up to you in the end. 
Let's do SOT 5. 

226
00:12:17,760 --> 00:12:21,480
We can show how how it would 
look like with rooms, but I will

227
00:12:21,480 --> 00:12:26,320
do it how we do it in. 
Because SOT 5 is progressive, so

228
00:12:26,320 --> 00:12:30,400
you can do it one way on one 
side and one way in another. 

229
00:12:30,800 --> 00:12:36,720
Exactly. 
Exactly why are you using NPM 

230
00:12:36,760 --> 00:12:38,760
Alex? 
You should use PNPM you said. 

231
00:12:38,760 --> 00:12:42,720
NPM I mean I. 
Said NPM for the create, I never

232
00:12:42,720 --> 00:12:44,560
said you for you to install 
stuff. 

233
00:12:45,000 --> 00:12:48,400
Oh OK, NPM install there. 
Yes, I. 

234
00:12:48,400 --> 00:12:50,000
I was in the same boat. 
I'm like. 

235
00:12:50,280 --> 00:12:52,000
See. 
And this will just magically 

236
00:12:52,000 --> 00:12:54,800
work. 
Because PNPM is the best. 

237
00:12:54,960 --> 00:12:58,800
I'm going to do this too so we 
can actually check the the file 

238
00:12:58,800 --> 00:13:01,040
system as we go here. 
Why don't you do? 

239
00:13:01,040 --> 00:13:02,160
Code. 
Period. 

240
00:13:02,160 --> 00:13:04,640
Dash R and it'll open in the 
same window. 

241
00:13:04,920 --> 00:13:05,520
What? 
What I didn't? 

242
00:13:06,120 --> 00:13:08,720
Know. 
I didn't know that. 

243
00:13:10,240 --> 00:13:13,840
Here yeah, code period. 
Dash R will open it in the same 

244
00:13:13,840 --> 00:13:16,440
window. 
If I do, I never use CPS codes 

245
00:13:16,440 --> 00:13:18,080
terminal. 
I use like. 

246
00:13:18,440 --> 00:13:20,560
It won't do anything because 
you're already in that, but 

247
00:13:20,560 --> 00:13:22,440
whatever folder you're in, it 
will open. 

248
00:13:22,760 --> 00:13:23,200
That's cool. 
Awesome. 

249
00:13:25,080 --> 00:13:29,680
OK, so let's open up that dev 
server. 

250
00:13:29,680 --> 00:13:31,760
Should I, should I run this guy?
Yeah. 

251
00:13:32,520 --> 00:13:35,040
You know you don't have to type 
run with PNPM. 

252
00:13:35,760 --> 00:13:36,800
What does that mean? 
Oh, really? 

253
00:13:37,440 --> 00:13:41,680
PNPM dev will work. 
You don't need PNPM run dev like

254
00:13:41,680 --> 00:13:44,960
NPM does. 
So you don't need like any of 

255
00:13:44,960 --> 00:13:46,120
these. 
You don't have to put run. 

256
00:13:46,760 --> 00:13:48,680
Nope. 
Wow, you know what? 

257
00:13:48,680 --> 00:13:50,240
It's better. 
Even you should. 

258
00:13:50,360 --> 00:13:51,720
Be I'm just. 
Going to teach you all the 

259
00:13:51,880 --> 00:13:53,240
tricks. 
The things I learned. 

260
00:13:53,720 --> 00:13:58,680
You should use end foos Anthony 
Foos knee package. 

261
00:13:58,680 --> 00:14:01,440
Have you heard of it? 
What is it? 

262
00:14:02,080 --> 00:14:06,280
Google it, go to end Foo. 
Like end Foo like. 

263
00:14:06,360 --> 00:14:10,680
That yeah, I mean it's I'm going
to put in the chat so end Foo 

264
00:14:10,680 --> 00:14:11,560
slash knee. 
I don't. 

265
00:14:12,560 --> 00:14:15,640
Think I've heard of this? 
Oh yeah, never heard of this. 

266
00:14:17,920 --> 00:14:22,680
Oh, and Foo is the the person 
that works on V and exactly. 

267
00:14:23,160 --> 00:14:25,480
Yeah. 
So basically it's analyzed, It 

268
00:14:25,560 --> 00:14:29,560
automatically sees what package 
log you're using and just runs 

269
00:14:29,560 --> 00:14:31,720
that. 
And if no package log is 

270
00:14:31,720 --> 00:14:34,040
detected or anything like that, 
it's just going to ask, hey, 

271
00:14:34,160 --> 00:14:36,080
which one do you want to use? 
That's cool for you. 

272
00:14:36,200 --> 00:14:38,880
Also, you don't have to think 
about what package manager. 

273
00:14:38,880 --> 00:14:43,800
Can I brew install anyways? 
It's a global NPM. 

274
00:14:43,800 --> 00:14:45,880
Stuff, I feel like that's for 
another day, yeah. 

275
00:14:46,040 --> 00:14:51,120
For sure. 
So let's do, since melt doesn't 

276
00:14:51,320 --> 00:14:55,200
isn't not a spout component, we 
can declare we can create a 

277
00:14:55,280 --> 00:15:00,200
builder file first. 
OK, let's think do you let's go 

278
00:15:00,200 --> 00:15:02,960
with a really simple builder. 
Really simple builder could be 

279
00:15:02,960 --> 00:15:07,240
maybe a toggle. 
So on source and Lib we can 

280
00:15:07,240 --> 00:15:11,240
create our own builders folder. 
Oh, builders. 

281
00:15:12,200 --> 00:15:15,520
Awesome. 
And there we can create maybe 

282
00:15:15,520 --> 00:15:18,480
toggle TS. 
Uppercase. 

283
00:15:19,320 --> 00:15:20,560
No lowercase. 
OK. 

284
00:15:22,320 --> 00:15:25,040
Awesome. 
Now since it's a builder, 

285
00:15:25,040 --> 00:15:28,680
normally what I'd call them I 
always prefix to move create. 

286
00:15:28,680 --> 00:15:37,320
So I would do export function, 
create toggle, Awesome. 

287
00:15:37,320 --> 00:15:39,200
No arguments. 
We don't need those for now. 

288
00:15:39,200 --> 00:15:40,840
We're going to do the simplest 
thing. 

289
00:15:44,480 --> 00:15:47,360
Awesome. 
Now all builders can have 

290
00:15:47,360 --> 00:15:53,120
internal state. 
The way we can do it is well, 

291
00:15:53,120 --> 00:15:55,000
the toggle just needs. 
We just need to know if it's 

292
00:15:55,000 --> 00:15:57,680
pressed or not, right? 
So what we're going to do here 

293
00:15:57,680 --> 00:16:02,600
is just create a variable called
pressed and it can be a store 

294
00:16:02,600 --> 00:16:04,880
for now. 
We can do a rooms version later.

295
00:16:05,120 --> 00:16:09,560
So it's going to be a writable 
and it's going to start with 

296
00:16:09,560 --> 00:16:11,880
files. 
We can handle props and 

297
00:16:11,880 --> 00:16:13,800
parameters later. 
Cool. 

298
00:16:14,200 --> 00:16:16,960
Now we need the toggle. 
There's a toggle element, right?

299
00:16:16,960 --> 00:16:21,440
We can call it trigger inside. 
So trigger. 

300
00:16:21,840 --> 00:16:24,280
Is this just a? 
Yeah, exactly. 

301
00:16:24,640 --> 00:16:29,360
And then it's going to be a 
derived because yeah, exactly. 

302
00:16:29,440 --> 00:16:33,600
And then we're going to get 
pressed and then there's our 

303
00:16:33,600 --> 00:16:35,440
callback. 
I always do dollar pressed. 

304
00:16:40,280 --> 00:16:41,320
Exactly. 
I think it does. 

305
00:16:41,640 --> 00:16:45,600
Mel have a Twitter. 
No, I am the Mel Twitter. 

306
00:16:46,120 --> 00:16:46,800
OK, I. 
Tried. 

307
00:16:47,000 --> 00:16:48,840
I tried finding it earlier, I 
had no. 

308
00:16:48,880 --> 00:16:52,680
I'm posting. 
That I don't know if I should 

309
00:16:52,680 --> 00:16:54,080
create a Mel Twitter. 
Maybe it should. 

310
00:16:54,960 --> 00:16:56,920
Well, what's? 
The logo. 

311
00:16:57,440 --> 00:16:59,920
Oh, thank you. 
Yeah, we actually had a, a 

312
00:16:59,960 --> 00:17:03,480
designer contribute to it. 
So it's a, it's a match between 

313
00:17:04,280 --> 00:17:07,200
the logo that designer came up 
with and some tweaks I did. 

314
00:17:07,680 --> 00:17:09,040
But yeah. 
Nice. 

315
00:17:10,520 --> 00:17:12,160
OK. 
Now we can just return like a 

316
00:17:12,160 --> 00:17:16,720
data attribute. 
So we return an object and we're

317
00:17:16,720 --> 00:17:21,119
going to do data pressed. 
It needs to be in quotes since 

318
00:17:21,119 --> 00:17:22,920
it's going to be data dash 
pressed. 

319
00:17:24,960 --> 00:17:28,680
Like data dash pressed like 
that. 

320
00:17:28,680 --> 00:17:31,160
Exactly, exactly. 
And then we're going to do you 

321
00:17:31,160 --> 00:17:35,160
can just pass in pressed or what
we can even do needs to be 

322
00:17:35,160 --> 00:17:39,520
dollar pressed, sorry. 
So this is going to be an HTML 

323
00:17:39,520 --> 00:17:42,800
attribute. 
Exactly why am I using this data

324
00:17:42,800 --> 00:17:44,880
attribute? 
So we can later style stuff? 

325
00:17:45,320 --> 00:17:47,640
That's basically it. 
But these are just the 

326
00:17:47,640 --> 00:17:50,240
attributes. 
Can we rename trigger to trigger

327
00:17:50,240 --> 00:17:51,520
attributes? 
Sure. 

328
00:17:52,200 --> 00:17:57,160
Thank you. 
So you can't use active is what 

329
00:17:57,160 --> 00:17:59,480
I'm thinking, but that's the 
Tailwind class. 

330
00:17:59,480 --> 00:18:02,920
Like you can't use the actual 
active state of something like 

331
00:18:02,920 --> 00:18:05,360
ACSS. 
You can't. 

332
00:18:05,360 --> 00:18:08,320
Yeah. 
I mean, I'm confused. 

333
00:18:08,560 --> 00:18:11,120
Since we're since we're not 
using all of them, I'm going to 

334
00:18:11,240 --> 00:18:13,880
do this for a minute. 
With Tailwind, what we do, it's 

335
00:18:13,880 --> 00:18:16,560
like we could use the data 
attribute selector that tailwind

336
00:18:16,560 --> 00:18:18,960
has. 
So data dash then I think it's 

337
00:18:18,960 --> 00:18:22,160
square brackets pressed two. 
Points and then you. 

338
00:18:22,200 --> 00:18:24,440
Would have to. 
You would have to get the data 

339
00:18:24,440 --> 00:18:29,080
attribute, but you can't read 
the state of the element like 

340
00:18:29,080 --> 00:18:34,080
acss state you could read. 
Yeah, no, I mean, no exactly. 

341
00:18:34,080 --> 00:18:37,480
Since it's just a JavaScript 
state, the only way we expose it

342
00:18:37,600 --> 00:18:41,320
to the HTML attribute, Yeah, we 
do have access to hover, focus 

343
00:18:41,320 --> 00:18:43,160
active stuff like that, but 
that's it. 

344
00:18:44,400 --> 00:18:47,160
And then what would have to do 
is just to sync we, we need to 

345
00:18:47,160 --> 00:18:49,000
do an action. 
So what we're going to do is 

346
00:18:49,000 --> 00:18:51,400
construction trigger action. 
Function. 

347
00:18:51,680 --> 00:18:53,800
Sorry, is that just with 
outside? 

348
00:18:53,800 --> 00:18:59,560
Yeah, here exactly. 
That's what I was thinking is 

349
00:18:59,560 --> 00:19:04,240
like instead of data press like 
you could if if it is active 

350
00:19:04,240 --> 00:19:08,160
state. 
Oh, sorry, if it is active 

351
00:19:08,160 --> 00:19:10,800
state, Yeah exactly. 
We could kind of do what what I 

352
00:19:10,800 --> 00:19:13,240
normally do in mouth instead of 
just passing press like that. 

353
00:19:13,600 --> 00:19:16,600
I like to omit the data 
attribute whenever it's not 

354
00:19:16,600 --> 00:19:18,240
present. 
So instead what we could do on 

355
00:19:18,240 --> 00:19:22,000
line 7 is we could add a 
question mark on the end to do a

356
00:19:22,000 --> 00:19:26,600
turn of your operator. 
If it's present, we can do an 

357
00:19:26,600 --> 00:19:28,400
empty string because that 
already. 

358
00:19:29,000 --> 00:19:31,160
All right, if pressed, is 
present. 

359
00:19:31,640 --> 00:19:34,600
Yeah, then an empty string, 
otherwise undefined. 

360
00:19:36,040 --> 00:19:39,080
That will make it so that data 
pressed is only present when 

361
00:19:39,080 --> 00:19:41,560
pressed is true. 
Which is yeah, it's not showing 

362
00:19:41,600 --> 00:19:45,360
in the markup. 
This is I like, I don't even 

363
00:19:45,360 --> 00:19:48,160
know what I'm writing right now,
so this is pretty exciting for 

364
00:19:48,160 --> 00:19:50,280
me. 
I mean, it's we're almost done, 

365
00:19:50,320 --> 00:19:53,400
so this is cool. 
So we're triggering an action, 

366
00:19:53,800 --> 00:19:56,280
yeah. 
An action is just a function 

367
00:19:56,320 --> 00:20:01,120
that accepts AHML element as the
first parameter, so we can do 

368
00:20:01,120 --> 00:20:04,040
node. 
Oh yeah, we can. 

369
00:20:04,040 --> 00:20:05,800
Do we can call it whatever you 
want, yeah. 

370
00:20:05,920 --> 00:20:09,480
And it's an HML element. 
We can even restrict it if we 

371
00:20:09,480 --> 00:20:11,080
want to, like a button or 
something like that. 

372
00:20:11,320 --> 00:20:14,640
But at Melt we don't do this 
normally. 

373
00:20:15,280 --> 00:20:18,480
Now we just need to add a event 
listener. 

374
00:20:18,480 --> 00:20:21,200
So what we're doing to do is 
function handle click. 

375
00:20:23,160 --> 00:20:26,680
If you're not restricting it to 
certain elements and you're type

376
00:20:26,680 --> 00:20:30,560
checking it, how are you 
handling accessibility for that?

377
00:20:31,080 --> 00:20:35,720
So basically that what we do is 
we already put in some rows like

378
00:20:35,720 --> 00:20:38,200
for example. 
We expect this to work as a 

379
00:20:38,200 --> 00:20:44,280
button, so we put row button the
attribute the HTML row to be. 

380
00:20:44,280 --> 00:20:47,120
OK, so you're doing you're 
adding roles rather than type 

381
00:20:47,120 --> 00:20:49,240
checking it with HTML button 
element. 

382
00:20:49,480 --> 00:20:52,600
Exactly. 
Maybe what we should do is just 

383
00:20:52,600 --> 00:20:55,760
check if it's a button, then we 
don't add the role, otherwise we

384
00:20:55,760 --> 00:20:58,400
add it. 
There's there are some 

385
00:20:58,400 --> 00:21:01,800
enhancements we can do there. 
Currently we don't, but it's 

386
00:21:01,800 --> 00:21:03,640
something that that has crossed 
my mind. 

387
00:21:03,640 --> 00:21:07,040
Just keep in mind we only have 
60 minutes left to create 

388
00:21:07,120 --> 00:21:08,840
whatever we're. 
Doing let's speed around this, 

389
00:21:09,160 --> 00:21:13,720
we can do press dot update. 
Sorry, where am I putting that? 

390
00:21:14,200 --> 00:21:15,200
Yeah, exactly. 
There. 

391
00:21:15,560 --> 00:21:19,080
OK. 
Press dot update then it's a 

392
00:21:19,080 --> 00:21:22,320
function. 
So yeah, and Prev or P whatever 

393
00:21:22,320 --> 00:21:25,120
you want and then you are going 
to return not P. 

394
00:21:26,640 --> 00:21:29,120
I'm going to return, not P. 
Exactly. 

395
00:21:29,120 --> 00:21:32,160
And then outside of the function
inside trigger action, you're 

396
00:21:32,160 --> 00:21:42,040
going to do node dot add event 
listener, click on with quotes, 

397
00:21:42,040 --> 00:21:46,080
sorry. 
And then it's going you're going

398
00:21:46,080 --> 00:21:48,320
to pass handle, click there, you
can just pass it directly. 

399
00:21:48,560 --> 00:21:51,280
Oh. 
OK, awesome. 

400
00:21:51,680 --> 00:21:55,080
And then after that, you're 
going to return an object. 

401
00:21:58,840 --> 00:22:01,760
It's going to destroy. 
Is the name of the key. 

402
00:22:02,640 --> 00:22:09,440
It's a function. 
And inside that function so open

403
00:22:09,440 --> 00:22:11,640
the the what what you call it 
are. 

404
00:22:13,000 --> 00:22:15,520
You looking for like that? 
And. 

405
00:22:15,880 --> 00:22:19,480
No, it's like the. 
Yeah, it destroys the callback 

406
00:22:19,480 --> 00:22:21,440
function exactly. 
So you need to do after the 

407
00:22:21,440 --> 00:22:24,240
parentheses. 
You need to do those not square 

408
00:22:24,240 --> 00:22:26,040
brackets, but the other. 
Thing curly. 

409
00:22:26,880 --> 00:22:31,680
Yeah, curly braces. 
This is funny. 

410
00:22:32,040 --> 00:22:34,360
I, I talked to someone else. 
English isn't their first 

411
00:22:34,360 --> 00:22:36,280
language, and we were having all
kinds of problems. 

412
00:22:36,280 --> 00:22:38,680
I finally said curly brace. 
He's like, yeah. 

413
00:22:39,080 --> 00:22:42,000
Exactly, it's so weird. 
Like parentheses is the same in 

414
00:22:42,000 --> 00:22:43,960
Portuguese, literally the same 
parentheses. 

415
00:22:44,560 --> 00:22:46,600
So it's really similar but 
actually this. 

416
00:22:46,600 --> 00:22:49,200
Probably has a more technical 
term I just I'm terrible with. 

417
00:22:49,560 --> 00:22:53,400
Isn't it a block? 
I mean in what's inside the 

418
00:22:53,400 --> 00:22:53,960
curly? 
Braces. 

419
00:22:53,960 --> 00:22:57,640
These are brackets, right? 
And some people call these curly

420
00:22:57,640 --> 00:23:00,120
brackets, so I don't know. 
Well, anyways. 

421
00:23:00,120 --> 00:23:01,840
Some people call them. 
Curly boys all. 

422
00:23:03,240 --> 00:23:06,640
Right, let's keep going. 
So here you do node dot remove 

423
00:23:06,680 --> 00:23:10,960
event listener and you pass in 
the same parameters as the add 

424
00:23:10,960 --> 00:23:14,480
event listener. 
So click and then handle right? 

425
00:23:15,040 --> 00:23:18,240
Yeah. 
And now on create toggle we can 

426
00:23:18,240 --> 00:23:20,920
return both the trigger 
attributes and trigger action. 

427
00:23:21,000 --> 00:23:25,000
We we are going to enhance this 
DX later but this is enough for 

428
00:23:25,000 --> 00:23:27,080
now so. 
So we're just returning them 

429
00:23:27,080 --> 00:23:30,480
down here. 
Yeah, you create an object and 

430
00:23:30,480 --> 00:23:32,160
you return both the attributes 
and the action. 

431
00:23:33,840 --> 00:23:36,000
I guess it wants to put them in 
order. 

432
00:23:39,480 --> 00:23:41,680
Awesome, now we're going to 
create. 

433
00:23:42,160 --> 00:23:46,040
For some reason pressed is not 
typed even though it should be 

434
00:23:46,040 --> 00:23:52,560
automatically typed Pressed. 
Well, you can just type as a 

435
00:23:52,560 --> 00:23:54,760
boolean. 
Yeah. 

436
00:23:55,360 --> 00:23:59,200
Up on the variable on line 4, do
a boolean. 

437
00:23:59,840 --> 00:24:02,800
Oh no, I think that's. 
A. 

438
00:24:02,960 --> 00:24:04,440
That's a writable boolean, 
right? 

439
00:24:04,600 --> 00:24:06,120
Yeah, that's already, that's 
already correct. 

440
00:24:06,120 --> 00:24:09,080
It's on five, on five, where 
exactly there you can put it as 

441
00:24:09,080 --> 00:24:10,560
a that's. 
Weird, yeah. 

442
00:24:10,960 --> 00:24:15,480
OK, we can save format, it's 
already formatted OK and then we

443
00:24:15,480 --> 00:24:19,240
can create on Lib a components 
folder and a toggle components. 

444
00:24:20,080 --> 00:24:27,720
All right, Lib components, yeah,
and A and I know I can do that 

445
00:24:27,720 --> 00:24:32,400
in one toggle component. 
No, just toggle is fine too. 

446
00:24:32,720 --> 00:24:34,360
Or just toggle OK. 
Double dot spell. 

447
00:24:34,640 --> 00:24:37,640
That spell, right? 
Awesome, let's open that 

448
00:24:37,640 --> 00:24:42,680
beautiful script tag. 
We're doing length, yes, Yeah. 

449
00:24:43,680 --> 00:24:46,960
And then let's import create 
toggle. 

450
00:24:49,680 --> 00:24:51,640
It's it needs to be inside curly
braces. 

451
00:24:51,840 --> 00:24:55,040
Oh, nice. 
And now we're going to call 

452
00:24:55,040 --> 00:25:02,160
create toggle on script tag on 
the script tag, and you're going

453
00:25:02,160 --> 00:25:05,800
to assign it to an object. 
So construction open curly 

454
00:25:05,800 --> 00:25:12,320
braces, oops, exactly equals, 
and then just get those 

455
00:25:12,320 --> 00:25:13,760
attributes and action out of 
there. 

456
00:25:16,040 --> 00:25:19,360
Cool, awesome. 
Now we can create a button. 

457
00:25:21,920 --> 00:25:26,080
It's almost done. 
Finally, this is good. 

458
00:25:26,080 --> 00:25:28,040
Now you're going to spread the 
attributes there. 

459
00:25:28,360 --> 00:25:34,520
So curly braces dot dot dot 
trigger attributes. 

460
00:25:37,560 --> 00:25:40,000
Cool. 
And then you're going to do use.

461
00:25:40,000 --> 00:25:42,280
Oh, it needs a dollar sign on 
the trigger attributes. 

462
00:25:42,360 --> 00:25:45,560
I almost forgot because since 
it's a star. 

463
00:25:45,880 --> 00:25:47,040
Right. 
Exactly. 

464
00:25:48,720 --> 00:25:52,640
Let's ignore that that for now 
and then we're going to do use 

465
00:25:52,640 --> 00:25:55,400
trigger action. 
Sorry here no. 

466
00:25:55,680 --> 00:25:58,240
No as an. 
Use colon. 

467
00:25:59,080 --> 00:26:03,200
Yeah, exactly. 
So space use column trigger 

468
00:26:03,200 --> 00:26:06,080
action. 
That makes so much more sense. 

469
00:26:06,640 --> 00:26:08,800
Cool. 
And now inside we can just do 

470
00:26:08,800 --> 00:26:13,240
click me or something like that.
Or how are we can haggle? 

471
00:26:13,800 --> 00:26:15,200
Exactly. 
We can do that too. 

472
00:26:15,480 --> 00:26:18,280
Now let's put that inside our 
page and let's play around. 

473
00:26:18,560 --> 00:26:22,760
We're still going to do some 
changes, but let's just have 

474
00:26:22,760 --> 00:26:28,800
something to get to get started.
Yes. 

475
00:26:28,880 --> 00:26:31,480
Time we have left for for 
coding? 

476
00:26:31,880 --> 00:26:34,000
What's that? 
What's how many times do we have

477
00:26:34,000 --> 00:26:37,440
left for coding? 
We have, we have, yeah, one hour

478
00:26:37,440 --> 00:26:40,680
to get anything we want done. 
OK, that's fine. 

479
00:26:41,960 --> 00:26:45,560
OK. 
So we're going to import our 

480
00:26:45,560 --> 00:26:49,080
toggle, which is, yes, that's 
it. 

481
00:26:49,520 --> 00:26:55,200
That's the one. 
Awesome. 

482
00:26:55,680 --> 00:26:57,360
Let's see. 
Our results. 

483
00:26:59,040 --> 00:27:02,320
There we go, cool, very fancy 
button that I'm sure everyone 

484
00:27:02,320 --> 00:27:09,080
can see. 
Now if you if you if you inspect

485
00:27:09,080 --> 00:27:14,160
that button on the inspector, 
what a what HTML attributes do 

486
00:27:14,160 --> 00:27:17,160
we have? 
Oh, nobody can see. 

487
00:27:17,160 --> 00:27:18,960
That let me bump that. 
Up too. 

488
00:27:19,000 --> 00:27:21,320
OK, nine. 
Now click now. 

489
00:27:21,320 --> 00:27:24,200
Click that button. 
What? 

490
00:27:24,720 --> 00:27:25,800
Now we have data. 
Press. 

491
00:27:25,800 --> 00:27:28,800
That's the magic of mount that 
turn. 

492
00:27:30,800 --> 00:27:32,200
Now what we're going to. 
Do is? 

493
00:27:32,280 --> 00:27:34,840
Can we just? 
Pause for one second just to 

494
00:27:34,840 --> 00:27:38,000
walk back through this. 
So we have this toggle. 

495
00:27:38,320 --> 00:27:42,800
Basically it's just a button. 
Then when we, we wrote this, we 

496
00:27:42,800 --> 00:27:44,920
have some stores that came into 
play, right? 

497
00:27:45,520 --> 00:27:49,160
And this use trigger action if I
can go in there. 

498
00:27:50,280 --> 00:27:54,480
Basically what that's that's 
pulling out is this HTML 

499
00:27:54,480 --> 00:27:58,400
attribute essentially at the end
of the day, and we're saying if 

500
00:27:58,400 --> 00:28:00,960
it's, if it's pressed, put 
something out there, if it's 

501
00:28:00,960 --> 00:28:04,440
not, don't. 
But the the the trigger action 

502
00:28:04,440 --> 00:28:10,440
itself is what causes that click
handler to be used. 

503
00:28:11,360 --> 00:28:12,080
Did I say? 
That. 

504
00:28:12,120 --> 00:28:13,440
Terribly. 
No. 

505
00:28:13,440 --> 00:28:14,120
It's. 
I. 

506
00:28:14,160 --> 00:28:16,680
Mean, I think it's awesome. 
OK, you got that right. 

507
00:28:17,560 --> 00:28:18,640
Cool. 
Now we just. 

508
00:28:18,640 --> 00:28:21,680
Need to add some study so it's 
visually like different. 

509
00:28:21,720 --> 00:28:26,000
What we could do is, I don't 
know, let's invert the colors 

510
00:28:26,000 --> 00:28:30,320
whenever it's clicked, so on. 
So on the Tuggle component. 

511
00:28:30,320 --> 00:28:33,080
On style, let's create a style 
tag. 

512
00:28:36,000 --> 00:28:37,760
And then we can just. 
Do button. 

513
00:28:39,120 --> 00:28:42,360
And then? 
No, no, don't open the Curry 

514
00:28:42,360 --> 00:28:46,440
braces yet. 
Do you like open square bracket?

515
00:28:46,440 --> 00:28:48,400
Bracket, Yeah. 
Yeah. 

516
00:28:48,400 --> 00:28:49,760
And then do. 
Data pressed. 

517
00:28:51,080 --> 00:28:52,640
You don't need the the. 
Qualitative. 

518
00:28:52,800 --> 00:28:54,520
Oh, you don't. 
I don't think. 

519
00:28:54,520 --> 00:28:59,680
So awesome, now you. 
Open the Curry braces and do 

520
00:28:59,680 --> 00:29:02,240
filter invert. 
Oh, or you could do. 

521
00:29:02,240 --> 00:29:03,760
Background. 
Whatever you Oh no, no, tell me 

522
00:29:03,760 --> 00:29:04,840
about. 
This I don't know what this is 

523
00:29:04,840 --> 00:29:10,280
Filter so filter. 
That's it, Colon. 

524
00:29:10,800 --> 00:29:16,560
Yeah, Colon and. 
Then invert and then one awesome

525
00:29:16,560 --> 00:29:18,120
going to invert. 
The colors it's a. 

526
00:29:18,360 --> 00:29:19,760
Filtered function. 
Wow. 

527
00:29:19,760 --> 00:29:21,520
I am so. 
Bad at CSS. 

528
00:29:23,160 --> 00:29:23,960
Now. 
Let's click it. 

529
00:29:25,200 --> 00:29:27,720
That's so cool. 
Now let's do. 

530
00:29:27,720 --> 00:29:31,920
It with I mean we normally have 
some DX enhancements with melt, 

531
00:29:31,920 --> 00:29:35,000
so instead of having trigger 
attributes and action be two 

532
00:29:35,000 --> 00:29:36,880
separate things, you know what I
mean? 

533
00:29:37,400 --> 00:29:41,280
Sorry, sorry to interrupt you. 
I was just we got a question. 

534
00:29:42,160 --> 00:29:44,000
This will work even in Svelt 5 
right? 

535
00:29:44,000 --> 00:29:47,200
Are you guys going to rewrite 
MELT UI with the new Svelt 5 

536
00:29:47,200 --> 00:29:50,880
features exactly? 
These will work with Svelt 5. 

537
00:29:51,600 --> 00:29:54,480
So to answer this question, 
let's do this by the way. 

538
00:29:54,480 --> 00:30:00,600
This cat with a light in its 
mouth is hilarious, so that is 

539
00:30:00,600 --> 00:30:01,960
incredible. 
OK, sorry. 

540
00:30:02,480 --> 00:30:03,360
Yeah, don't worry. 
So. 

541
00:30:03,360 --> 00:30:05,720
Let's go to let's create the 
rooms version. 

542
00:30:05,720 --> 00:30:09,840
Then I what I would say is you 
copy that toggle TS file and do 

543
00:30:09,840 --> 00:30:13,240
a toggle rooms or something like
that, or toggle dot rooms. 

544
00:30:13,640 --> 00:30:15,880
No, it needs to be toggle dot 
spelt, right? 

545
00:30:16,280 --> 00:30:18,480
That's felt dot TS. 
Wait, are we talking? 

546
00:30:18,480 --> 00:30:19,880
About the OH. 
Yeah, it has to be. 

547
00:30:19,880 --> 00:30:25,760
Dot spelt dot TS first exactly. 
OK, so toggle dot spelt dot TS 

548
00:30:25,960 --> 00:30:28,800
exactly, yeah. 
This will work out of the. 

549
00:30:28,800 --> 00:30:33,520
Bat, but it's bigger again. 
Yeah, so. 

550
00:30:33,560 --> 00:30:36,320
When we set this up, we did. 
Choose spell 5 too. 

551
00:30:36,320 --> 00:30:38,760
So we're already running spell 5
currently. 

552
00:30:38,920 --> 00:30:40,880
Yeah, yeah. 
So let's do let's. 

553
00:30:40,880 --> 00:30:43,160
Change press to use the state 
room. 

554
00:30:44,000 --> 00:30:47,120
So that's dollar state right? 
I always. 

555
00:30:47,160 --> 00:30:50,120
Forget I only played with it 
like once really quickly. 

556
00:30:50,120 --> 00:30:51,920
You don't. 
Have to do. 

557
00:30:52,320 --> 00:30:53,080
You have to. 
Import that. 

558
00:30:53,840 --> 00:30:55,920
No. 
Oh, all right. 

559
00:30:56,080 --> 00:30:57,960
It's magical. 
I didn't know that. 

560
00:30:58,640 --> 00:31:01,280
Cool, and now? 
We can just call it trigger 

561
00:31:01,600 --> 00:31:05,640
because slot 5 finally has 
something I really am eager to 

562
00:31:05,640 --> 00:31:07,680
show, which is just spreadable 
event listener. 

563
00:31:07,680 --> 00:31:11,240
So let's get that. 
Let's rename it to trigger. 

564
00:31:12,640 --> 00:31:17,080
Is derived. 
Going to be an effect, no it. 

565
00:31:17,080 --> 00:31:19,720
Doesn't need to be. 
None of it can just be a getter 

566
00:31:20,240 --> 00:31:21,800
thing. 
So what we can? 

567
00:31:21,800 --> 00:31:24,600
Do. 
Actually, let's go copy that. 

568
00:31:24,600 --> 00:31:27,200
Data. 
Breasts thing that copy line 7 

569
00:31:27,840 --> 00:31:29,800
no OK. 
OK, awesome. 

570
00:31:29,800 --> 00:31:34,920
Now let's go to line 22. 
Remove these two. 

571
00:31:34,960 --> 00:31:36,760
These two, No, don't copy it 
yet. 

572
00:31:36,760 --> 00:31:37,200
All right. 
Sorry. 

573
00:31:37,240 --> 00:31:38,320
Sorry. 
No worries. 

574
00:31:38,600 --> 00:31:49,760
Now do get space trigger, open 
your parentheses exactly and now

575
00:31:49,760 --> 00:31:52,800
curly braces. 
Now what's going to do you're? 

576
00:31:52,800 --> 00:31:57,280
Just going to copy that your 
based offline I mean and get 

577
00:31:57,280 --> 00:31:59,920
accessory must return a value, 
does it? 

578
00:32:02,320 --> 00:32:03,200
Are we doing? 
Oh, it needs. 

579
00:32:03,200 --> 00:32:04,800
To be returned object. 
Sorry. 

580
00:32:05,800 --> 00:32:08,680
So you're going to. 
Return an object, and that's 

581
00:32:08,680 --> 00:32:10,120
what's going to be inside of, 
yeah. 

582
00:32:12,280 --> 00:32:14,480
Exactly and now. 
You're just going to return 

583
00:32:14,480 --> 00:32:17,720
press without a dollar sign. 
Do I have to? 

584
00:32:18,160 --> 00:32:19,840
Get that in there? 
Nope. 

585
00:32:20,760 --> 00:32:21,720
This. 
Is so weird. 

586
00:32:22,320 --> 00:32:25,960
And now? 
You're going to on 24 put a 

587
00:32:25,960 --> 00:32:30,640
comma new line, OK. 
And that onclick. 

588
00:32:30,760 --> 00:32:34,640
It's all together, no cases, 
just all over case. 

589
00:32:34,640 --> 00:32:36,360
So onclick, no, that's right, we
got. 

590
00:32:36,640 --> 00:32:40,000
Rid of the. 
Colon a narrow function. 

591
00:32:40,000 --> 00:32:44,200
I haven't played with this. 
At all. 

592
00:32:45,560 --> 00:32:46,000
It. 
Needs. 

593
00:32:46,440 --> 00:32:48,760
It needs two dots. 
You can also do onclick 

594
00:32:49,080 --> 00:32:53,320
parentheses like that. 
Only one OK. 

595
00:32:53,800 --> 00:32:55,040
Now. 
Parentheses. 

596
00:32:55,400 --> 00:32:56,640
Oh, right, I'm just. 
Making. 

597
00:32:56,800 --> 00:33:01,480
I'm sorry you're making. 
New JavaScript syntax and now 

598
00:33:01,480 --> 00:33:03,640
you just do pressed equals, not 
pressed. 

599
00:33:06,360 --> 00:33:09,760
That's right. 
Because the state rune is 

600
00:33:10,560 --> 00:33:13,120
reactive. 
I mean, that gives you that fine

601
00:33:13,120 --> 00:33:15,440
grain reactivity. 
So wait, where's? 

602
00:33:15,560 --> 00:33:16,840
Where's? 
What do you mean by that? 

603
00:33:16,840 --> 00:33:18,560
You mean like a bang? 
A bang. 

604
00:33:18,600 --> 00:33:20,680
Oh, gotcha. 
But you. 

605
00:33:20,680 --> 00:33:21,760
Forget that. 
No, no, no. 

606
00:33:21,760 --> 00:33:26,080
It's an equal equal to. 
Bang pressed Exactly. 

607
00:33:27,320 --> 00:33:31,480
It's so funny. 
That you called bang, oh, that's

608
00:33:31,520 --> 00:33:34,080
the operate. 
That's the name of the operator.

609
00:33:34,680 --> 00:33:36,840
Yeah. 
Press needs to be a lat. 

610
00:33:38,160 --> 00:33:43,400
Yeah, press needs to be a lat. 
I forgot about that, so on four 

611
00:33:43,400 --> 00:33:48,360
line 400. 
Way up here all right and we. 

612
00:33:48,480 --> 00:33:50,960
Can and we can delete trigger 
and trigger action now? 

613
00:33:51,920 --> 00:33:53,560
Wow. 
So all this goes away. 

614
00:33:53,880 --> 00:33:55,080
Oh so. 
Much. 

615
00:33:55,080 --> 00:33:56,840
Easier. 
Wow, beautiful. 

616
00:33:57,040 --> 00:33:57,880
Now you can. 
We don't. 

617
00:33:57,880 --> 00:34:01,680
You can also. 
Yeah, I should have just showed.

618
00:34:01,720 --> 00:34:03,520
Oh. 
So. 

619
00:34:03,840 --> 00:34:06,040
This is runes, huh? 
This is. 

620
00:34:06,760 --> 00:34:09,560
Runes no and. 
Spreadable event listeners, 

621
00:34:09,560 --> 00:34:11,000
otherwise we would need that 
action. 

622
00:34:11,400 --> 00:34:12,880
Wow runes. 
Is awesome. 

623
00:34:13,239 --> 00:34:14,960
But spreadable event listeners I
just. 

624
00:34:16,320 --> 00:34:18,040
And those are. 
Cooler now on. 

625
00:34:18,040 --> 00:34:21,480
Toggle spout we can do we want 
to create toggle to create 

626
00:34:21,480 --> 00:34:24,239
toggle rooms maybe. 
I'm actually glad you're going. 

627
00:34:24,239 --> 00:34:27,719
To show this, because extending 
event listeners currently in 

628
00:34:27,719 --> 00:34:30,760
spell and when you're doing a 
design system it, you have to 

629
00:34:30,760 --> 00:34:34,239
write all of them out or you 
have to like do an interface 

630
00:34:34,239 --> 00:34:38,159
with the events and extend it. 
And it's a pain, yeah. 

631
00:34:39,120 --> 00:34:41,000
Now we can go to a beautiful 
component. 

632
00:34:41,000 --> 00:34:41,920
Do we? 
Do we want? 

633
00:34:41,920 --> 00:34:45,679
To create a separate component 
for this, like copy the current.

634
00:34:45,679 --> 00:34:47,040
Yeah, let's do. 
It OK. 

635
00:34:47,639 --> 00:34:49,679
So toggle rooms. 
Or something like that. 

636
00:34:51,360 --> 00:34:53,400
Cool now. 
We're going to get create 

637
00:34:53,400 --> 00:34:55,000
toggle. 
We're going to switch it up. 

638
00:34:55,080 --> 00:34:58,040
Let's do create toggle rooms. 
Where am I? 

639
00:34:58,040 --> 00:35:02,960
Create toggle rooms from. 
Toggle. 

640
00:35:04,000 --> 00:35:06,880
Got felt yeah oh, that got. 
Weird. 

641
00:35:09,440 --> 00:35:11,080
Yeah, now. 
Let's change it up. 

642
00:35:11,680 --> 00:35:16,240
It's going to be consts toggle 
OK. 

643
00:35:17,000 --> 00:35:18,520
Consts No. 
Yeah, Consts. 

644
00:35:18,520 --> 00:35:19,400
Toggle. 
That's right, sorry. 

645
00:35:19,680 --> 00:35:21,760
Const toggle equals create 
toggle runes. 

646
00:35:23,480 --> 00:35:25,560
Yeah. 
And then on button, we're going 

647
00:35:25,560 --> 00:35:28,000
to remove what you're going to 
have and we're just going to 

648
00:35:28,000 --> 00:35:38,200
spread. 
Toggle dot trigger Yeah they. 

649
00:35:38,400 --> 00:35:42,160
Auto. 
Complete like messed up there, 

650
00:35:42,640 --> 00:35:46,080
sorry. 
Toggle dot trigger. 

651
00:35:46,480 --> 00:35:50,440
Yeah, drug holder it. 
Does, doesn't it? 

652
00:35:50,840 --> 00:35:52,960
It does. 
Let's just accept fate. 

653
00:35:52,960 --> 00:35:55,120
Let's try it. 
Oh, you forgot. 

654
00:35:55,120 --> 00:35:57,000
You forgot the parentheses on 
create toggle rooms. 

655
00:36:00,080 --> 00:36:01,640
Creates a function. 
I thought I'd. 

656
00:36:01,640 --> 00:36:02,960
Put it and I must have removed 
it. 

657
00:36:03,360 --> 00:36:05,200
Cool, that's it. 
Let's try it out. 

658
00:36:05,800 --> 00:36:08,160
So just. 
Before I try it out, just 

659
00:36:08,360 --> 00:36:11,160
talking through this one more 
time so create. 

660
00:36:11,160 --> 00:36:13,480
Toggle. 
Runes is a function that's 

661
00:36:13,480 --> 00:36:20,000
returning this getter that 
returns a function of called 

662
00:36:20,000 --> 00:36:25,840
trigger that is going to return 
our onclick and our HTML 

663
00:36:25,960 --> 00:36:29,840
attribute. 
Yep, OK, that's it. 

664
00:36:30,320 --> 00:36:34,120
See how bad I am at this stuff? 
We need to. 

665
00:36:34,240 --> 00:36:35,520
We need to call it. 
On page two. 

666
00:36:35,520 --> 00:36:37,440
I almost forgot about that, 
yeah. 

667
00:36:43,200 --> 00:36:46,800
Cool, let's try it out. 
I'm not. 

668
00:36:46,800 --> 00:36:49,920
Sure if it's working. 
Also I wasn't sure if it's worth

669
00:36:50,040 --> 00:36:51,040
it. 
Doesn't work. 

670
00:36:51,440 --> 00:36:52,200
That is. 
Banana. 

671
00:36:53,480 --> 00:36:55,920
And what we can do? 
Even we can also return our 

672
00:36:55,920 --> 00:36:58,880
state. 
So let's say we wanted the text 

673
00:36:58,880 --> 00:37:02,600
to change, we could do that with
CSS, but let's do it with 

674
00:37:02,720 --> 00:37:06,600
JavaScript. 
So going back to our toggle dot 

675
00:37:06,600 --> 00:37:08,960
TS file, we're going to modify 
both of them. 

676
00:37:08,960 --> 00:37:11,960
It's going to be easy, OK. 
We're going to return. 

677
00:37:11,960 --> 00:37:18,560
Pressed and that's it. 
Down here, yeah, just like that,

678
00:37:19,160 --> 00:37:20,720
yeah. 
And we're going to do the. 

679
00:37:20,720 --> 00:37:23,160
Same on rooms, but in rooms we 
need to get her. 

680
00:37:24,440 --> 00:37:27,600
So in toggle dot felt. 
I mean, sorry, toggle. 

681
00:37:27,840 --> 00:37:31,480
Dot, why can't I get there? 
You're there. 

682
00:37:31,720 --> 00:37:32,760
That's the right. 
That's one. 

683
00:37:33,000 --> 00:37:34,080
Cool. 
And now? 

684
00:37:34,160 --> 00:37:36,640
After the get trigger we can do 
get pressed. 

685
00:37:38,000 --> 00:37:42,200
After the get trigger get 
pressed so on line. 10 down 

686
00:37:42,320 --> 00:37:44,440
here, OK. 
So. 

687
00:37:44,440 --> 00:37:52,760
Comma and now get pressed 
instead of trigger and then 

688
00:37:52,760 --> 00:37:54,320
you're just going to return 
pressed. 

689
00:37:57,960 --> 00:38:01,400
You could do this with classes. 
Too and we just do other things 

690
00:38:01,400 --> 00:38:03,640
you can do but. 
Are you able? 

691
00:38:03,640 --> 00:38:08,400
To do like so instead of like 
this whole return piece, can you

692
00:38:08,400 --> 00:38:13,000
do like get pressed and then 
like what's the word I'm looking

693
00:38:13,000 --> 00:38:15,720
for just like a function out at 
the end like. 

694
00:38:16,760 --> 00:38:18,760
I don't know the like. 
Getter setter. 

695
00:38:19,080 --> 00:38:20,680
I'm not. 
Sure, I. 

696
00:38:20,680 --> 00:38:23,480
Think you can like. 
Get press 2 dots and then do an 

697
00:38:23,480 --> 00:38:25,960
arrow maybe? 
I don't think we can. 

698
00:38:25,960 --> 00:38:29,720
There was something rich had a 
whole thread on using arrow 

699
00:38:29,720 --> 00:38:33,920
functions because this isn't 
like automatically applied in an

700
00:38:33,920 --> 00:38:36,320
arrow function. 
So that's what. 

701
00:38:36,320 --> 00:38:38,680
I was wondering, OK, good to 
know, but that's fine, I mean. 

702
00:38:38,720 --> 00:38:40,760
There are ways you we can 
improve this. 

703
00:38:40,920 --> 00:38:43,880
If I'm not mistaken, there have 
been a lot of improvements 

704
00:38:43,880 --> 00:38:45,880
recently, it's just been quite a
lot. 

705
00:38:45,880 --> 00:38:48,120
I'm a bit lost. 
I haven't played with rooms too 

706
00:38:48,120 --> 00:38:49,800
much recently. 
I'm trying to. 

707
00:38:50,000 --> 00:38:52,720
Just following a rich and. 
Since then I'm like, wow, this 

708
00:38:52,720 --> 00:38:54,920
is a lot. 
Yeah, every day. 

709
00:38:54,920 --> 00:38:56,920
On the ambassador's channel, 
everything knows. 

710
00:38:56,920 --> 00:38:59,000
This is just like new changes, 
new changes. 

711
00:38:59,640 --> 00:39:00,880
Anymore. 
And what about this? 

712
00:39:00,880 --> 00:39:03,520
And no, let's change this up. 
And now it's magical state just 

713
00:39:03,520 --> 00:39:06,600
works with everything, you know,
it's a lot. 

714
00:39:06,680 --> 00:39:09,240
It's really fun. 
I like how they called out. 

715
00:39:10,040 --> 00:39:13,040
Is it keystone JS? 
Is that the old one that used 

716
00:39:13,040 --> 00:39:15,800
signals way back in the day in 
in the right up originally? 

717
00:39:16,600 --> 00:39:18,520
Oh it. 
Was it's like I feel like a lot 

718
00:39:18,520 --> 00:39:19,440
back. 
Snow it was. 

719
00:39:20,000 --> 00:39:21,520
Backbone. 
It's something with. 

720
00:39:21,520 --> 00:39:24,520
AK right backbone and. 
Then. 

721
00:39:26,240 --> 00:39:27,520
Oh. 
Knockout. 

722
00:39:28,000 --> 00:39:30,400
Knockout, thank you. 
That's what it was, Knockout, 

723
00:39:30,720 --> 00:39:31,840
yeah. 
I feel like. 

724
00:39:32,400 --> 00:39:33,880
Knockout. 
That was Ryan. 

725
00:39:33,880 --> 00:39:36,920
Corniago's original thing, 
right? 

726
00:39:36,920 --> 00:39:38,680
Knockout. 
Oh, he did Knockout. 

727
00:39:38,680 --> 00:39:40,360
Too. 
I didn't realize that. 

728
00:39:41,000 --> 00:39:44,120
I know like he did Salad. 
He worked with Marco on the eBay

729
00:39:44,120 --> 00:39:45,600
team. 
I didn't realize he had that as 

730
00:39:45,600 --> 00:39:47,160
well. 
Yeah, me neither. 

731
00:39:47,800 --> 00:39:50,080
That's awesome, Rankar. 
Yarrow. 

732
00:39:51,600 --> 00:39:53,440
He's been talking honest. 
His inspiration? 

733
00:39:53,760 --> 00:39:55,000
Yeah, that guy's. 
Wild. 

734
00:39:55,320 --> 00:39:57,960
We need to have him back on 
again You. 

735
00:39:58,000 --> 00:40:00,080
Have everyone. 
In here what gives? 

736
00:40:00,360 --> 00:40:03,800
We try I. 
Mean if anyone needs 

737
00:40:03,800 --> 00:40:06,560
sponsorship, oh I don't know, 
where am I supposed to put 

738
00:40:06,560 --> 00:40:08,280
sponsorship in? 
Maybe he just used. 

739
00:40:08,280 --> 00:40:10,200
Knockout. 
He was talking about it in one 

740
00:40:10,200 --> 00:40:13,160
of his streams, but maybe he 
didn't create it. 

741
00:40:14,360 --> 00:40:16,760
Well, he's too awesome. 
Yes. 

742
00:40:17,720 --> 00:40:20,200
OK, it's. 
Got toggle spelt toggle. 

743
00:40:20,200 --> 00:40:22,560
Spelt. 
I'm here the other one. 

744
00:40:22,640 --> 00:40:27,720
The component, the other. 
One toggle this one yes, So what

745
00:40:27,720 --> 00:40:28,680
we're. 
Going to do is we're going to 

746
00:40:28,680 --> 00:40:29,320
get. 
Pressed. 

747
00:40:29,320 --> 00:40:32,640
There, Yeah. 
And then we're. 

748
00:40:32,640 --> 00:40:35,720
Going to do instead of the 
toggle text we have right now. 

749
00:40:36,880 --> 00:40:38,240
Sorry, Curly. 
Braces. 

750
00:40:38,640 --> 00:40:41,880
This pressed so. 
We're going to do an if 

751
00:40:42,320 --> 00:40:45,560
statement. 
We can do that. 

752
00:40:45,560 --> 00:40:48,240
That's even. 
Better so if pressed we we can 

753
00:40:48,240 --> 00:40:51,240
say toggled. 
This is. 

754
00:40:51,840 --> 00:40:53,960
Yeah, OK. 
Otherwise. 

755
00:40:53,960 --> 00:40:58,280
We're going to do toggle. 
And then it needs. 

756
00:40:58,280 --> 00:41:00,240
To be a dollar sign to pressed 
I. 

757
00:41:01,000 --> 00:41:02,320
Thank you. 
Cool. 

758
00:41:02,800 --> 00:41:04,600
And on rules, we're going. 
To do the same thing. 

759
00:41:04,880 --> 00:41:06,600
Anyone know why this is? 
Griping, by the way. 

760
00:41:07,520 --> 00:41:09,480
Oh, it's it's. 
Saying that the type isn't known

761
00:41:09,480 --> 00:41:12,640
even though it isn't. 
I think maybe it's. 

762
00:41:12,680 --> 00:41:15,080
I have no idea why. 
OK, that's fine. 

763
00:41:15,080 --> 00:41:17,120
I. 
Was just curious so toggle. 

764
00:41:17,120 --> 00:41:18,840
Rooms, we're going to do the 
same thing. 

765
00:41:20,360 --> 00:41:23,440
So. 
Wow, we already have it right. 

766
00:41:23,440 --> 00:41:27,160
So yeah, toggle dot pressed. 
Toggle. 

767
00:41:27,720 --> 00:41:30,960
Dot, is this a big or no? 
Can you just? 

768
00:41:31,200 --> 00:41:36,400
Can you extract pressed and 
trigger from toggle there 

769
00:41:36,880 --> 00:41:38,680
Unfortunately. 
Not unfortunately. 

770
00:41:38,680 --> 00:41:42,240
It's like it's funny. 
You can't because then we no 

771
00:41:42,240 --> 00:41:44,440
longer have the get the gather 
function. 

772
00:41:44,480 --> 00:41:47,280
It just extracts the value as 
soon as you get it. 

773
00:41:47,640 --> 00:41:51,360
But it's funny because with 
stars we have the opposite 

774
00:41:51,360 --> 00:41:53,720
limitation. 
So what the limitation with 

775
00:41:53,720 --> 00:41:56,920
runes is that you can't do 
structure that out in that way. 

776
00:41:57,240 --> 00:42:00,560
You could do, you could have 
some ways around it. 

777
00:42:01,920 --> 00:42:05,160
You could set the variables. 
Underneath, I mean, but it's 

778
00:42:05,160 --> 00:42:07,320
just more lines, yeah, Or like 
have. 

779
00:42:07,360 --> 00:42:10,600
A encapsulated thing where 
instead of being pressed it's 

780
00:42:10,600 --> 00:42:14,320
like pressed up value and the 
value is the gather function so 

781
00:42:14,320 --> 00:42:17,720
press is another could do that. 
This is one of the challenges. 

782
00:42:17,720 --> 00:42:21,000
I'm thinking whenever melt goes 
to runes how I'm going to do 

783
00:42:21,000 --> 00:42:22,960
that, but. 
Yeah, it. 

784
00:42:23,000 --> 00:42:25,120
Works. 
But with stars will have the 

785
00:42:25,120 --> 00:42:27,880
opposite. 
You can't do toggle dot dollar 

786
00:42:27,880 --> 00:42:29,320
press. 
That just doesn't work. 

787
00:42:29,320 --> 00:42:32,120
And you say hey that's fine, why
would I need to do that? 

788
00:42:32,440 --> 00:42:35,240
Let's say you're using two 
builders, 2 toggles inside the 

789
00:42:35,240 --> 00:42:37,320
same component or something like
that. 

790
00:42:37,800 --> 00:42:43,320
Now you can't do toggle one and 
toggle two and dot press. 

791
00:42:43,320 --> 00:42:45,720
No, you need to do pressed one 
press 2. 

792
00:42:46,440 --> 00:42:48,360
Toggle trigger. 
Attributes one trigger 

793
00:42:48,360 --> 00:42:51,280
attributes 2. 
It's just I bit halish that's 

794
00:42:51,400 --> 00:42:55,600
another reason why it's just so 
better to create components with

795
00:42:55,600 --> 00:42:59,400
the builders like instead of 
just using them raw like that, 

796
00:43:00,240 --> 00:43:02,760
so. 
Everything we just walk through,

797
00:43:04,280 --> 00:43:08,360
everything gets just dropped my.
Christmas tree so. 

798
00:43:08,480 --> 00:43:10,840
That's fun. 
Every year I'm like. 

799
00:43:10,840 --> 00:43:12,440
Afraid that's going to happen to
him? 

800
00:43:12,680 --> 00:43:14,760
Oh no. 
So. 

801
00:43:14,760 --> 00:43:16,800
Everything. 
We just walk through that was 

802
00:43:16,800 --> 00:43:19,040
all. 
Just felt whether it was runes 

803
00:43:19,080 --> 00:43:21,880
on spell 5 or not. 
Do you want to go pick it up? 

804
00:43:23,200 --> 00:43:25,600
I mean my girlfriend. 
Is going just message her. 

805
00:43:28,080 --> 00:43:31,520
She's like, oh crap. 
Yeah, if you need to do. 

806
00:43:31,520 --> 00:43:33,880
Anything feel free. 
No, no worries. 

807
00:43:34,720 --> 00:43:38,000
I'm I'm taking a look at my cat 
to see if she's going to do 

808
00:43:38,000 --> 00:43:40,920
anything worse and she's ready. 
For. 

809
00:43:41,000 --> 00:43:43,040
Trooper. 
Sorry. 

810
00:43:43,080 --> 00:43:47,160
So, so we walked through 12/4 
and 12/5 versions of creating 

811
00:43:47,160 --> 00:43:50,720
basically just kind of do we 
call them builders, just 

812
00:43:50,720 --> 00:43:52,080
generic. 
OK, so. 

813
00:43:52,080 --> 00:43:54,960
Builders. 
But we haven't even touched melt

814
00:43:54,960 --> 00:43:57,360
yet, right We? 
Haven't. 

815
00:43:57,760 --> 00:44:00,320
We can't. 
We can't try and create a brand 

816
00:44:00,320 --> 00:44:03,960
new builder with Melt. 
So where does? 

817
00:44:04,000 --> 00:44:08,560
Yeah, where does melt kind of 
fit into what's happening next? 

818
00:44:10,040 --> 00:44:14,560
So basically with melt it's it 
takes this better that I just 

819
00:44:14,560 --> 00:44:16,920
showed, but it takes it to the 
extreme. 

820
00:44:18,400 --> 00:44:20,200
If you. 
Want we can we can show a little

821
00:44:20,200 --> 00:44:24,000
bit like go to toggle on GitHub,
maybe on melts GitHub so we can 

822
00:44:24,000 --> 00:44:26,720
see a little bit of source code 
and they can't go over it. 

823
00:44:28,640 --> 00:44:30,480
So it's on. 
Source. 

824
00:44:32,000 --> 00:44:34,320
Zoom in a lot. 
Oh, there's no. 

825
00:44:34,320 --> 00:44:39,560
Guitaco Extension, OH. 
They have their own now so I 

826
00:44:39,560 --> 00:44:41,160
don't use it anymore. 
What? 

827
00:44:41,520 --> 00:44:44,000
Yeah, once you're. 
Once you're in there, they just 

828
00:44:44,000 --> 00:44:47,560
have their own. 
Doesn't it still refresh? 

829
00:44:47,600 --> 00:44:50,440
When you click them. 
No. 

830
00:44:50,440 --> 00:44:53,840
It's it's barred by React now. 
Yeah, that's why it's. 

831
00:44:53,840 --> 00:44:56,000
So slow. 
But anyways, so you can. 

832
00:44:57,600 --> 00:44:59,560
You can go to. 
You can go to. 

833
00:44:59,560 --> 00:45:02,800
Lib. 
I didn't say anything Lib. 

834
00:45:04,240 --> 00:45:07,000
Builders. 
I mean. 

835
00:45:07,040 --> 00:45:09,760
Seriously, if you go to a huge 
PR it just gets so slow. 

836
00:45:09,760 --> 00:45:11,520
They didn't optimize this at 
all. 

837
00:45:11,640 --> 00:45:14,600
I know it's possible to optimize
it for free act, but anyways, 

838
00:45:15,360 --> 00:45:18,640
now you go to create. 
And now our. 

839
00:45:18,640 --> 00:45:20,400
Toggle just got a whole lot 
bigger. 

840
00:45:20,400 --> 00:45:24,080
Let's see how many how many 
lines of code that is. 

841
00:45:24,440 --> 00:45:26,040
Not too much. 
It's not too bad. 

842
00:45:27,120 --> 00:45:29,520
So you. 
See that I have a root element. 

843
00:45:29,520 --> 00:45:32,160
It's the trigger element. 
We just name it root because 

844
00:45:32,160 --> 00:45:37,160
it's the only one we have. 
We also have our pressed state 

845
00:45:37,160 --> 00:45:39,600
over there. 
It's just using. 

846
00:45:40,040 --> 00:45:42,520
So melt has something. 
Let's go line by line. 

847
00:45:42,520 --> 00:45:45,360
Sorry, that's OK. 1st we have 
our. 

848
00:45:45,360 --> 00:45:49,840
Imports. 
Let's ignore our imports now. 

849
00:45:49,840 --> 00:45:54,040
Then we have our defaults. 
These are the defaults for the 

850
00:45:54,040 --> 00:45:58,080
props that we have. 
In this case we are just 

851
00:45:58,080 --> 00:46:01,120
choosing the defaults for 
default pressed and disabled 

852
00:46:02,520 --> 00:46:06,280
melt builders normally have. 
A default pressed. 

853
00:46:06,280 --> 00:46:10,320
Prop like for every state we 
have a default prop, but we also

854
00:46:10,320 --> 00:46:13,120
have. 
You can also pass in your own 

855
00:46:13,200 --> 00:46:14,920
writable. 
I'm going to show that in a bit.

856
00:46:15,600 --> 00:46:19,920
So with defaults, we just get 
the props, we override the 

857
00:46:19,920 --> 00:46:24,200
defaults if a prop has been 
passed, then for each of those 

858
00:46:24,200 --> 00:46:27,360
props, we convert them to 
writables, to stars. 

859
00:46:27,680 --> 00:46:30,400
Why? 
Well, we return these options, 

860
00:46:30,400 --> 00:46:33,240
and then after the creation of 
the builder, you can still 

861
00:46:33,240 --> 00:46:35,760
override these options, these 
props, if you want, 

862
00:46:36,360 --> 00:46:38,400
programmatically, because 
sometimes you need to do that. 

863
00:46:39,520 --> 00:46:43,680
Then on line 2728, that's a much
more complex version of Prest, 

864
00:46:43,960 --> 00:46:47,640
instead of it just being a 
writable, we have this thing 

865
00:46:47,640 --> 00:46:51,320
that's called an overwritable. 
That's a custom star we created 

866
00:46:51,320 --> 00:46:54,920
in mouth. 
What does it do basically? 

867
00:46:56,000 --> 00:46:58,040
Remember, I said, we have the. 
Default press prop. 

868
00:46:58,280 --> 00:47:01,920
We have two others. 
We can have a pressed prop. 

869
00:47:02,240 --> 00:47:05,560
You can see that I even have it 
there with default dot pressed. 

870
00:47:06,280 --> 00:47:09,880
And we also have an on pressed 
change prop. 

871
00:47:12,200 --> 00:47:17,880
This is again confusing I can 
see, but basically let's say 

872
00:47:17,880 --> 00:47:23,120
that instead of you just. 
Choosing. 

873
00:47:23,120 --> 00:47:28,400
A default value or just how can 
I say this? 

874
00:47:28,400 --> 00:47:31,440
Just receiving the store after 
creation. 

875
00:47:31,440 --> 00:47:33,840
Let's say you wanted to use an 
external store for whatever 

876
00:47:33,840 --> 00:47:36,960
reason you can you just you can 
pass that in. 

877
00:47:37,360 --> 00:47:39,240
So that's what we are doing on 
line 27. 

878
00:47:39,520 --> 00:47:44,360
In case that we are passing in a
store, we use that, otherwise we

879
00:47:44,360 --> 00:47:47,000
create a brand new one and. 
What? 

880
00:47:47,000 --> 00:47:51,760
Overridable does is it gets that
store, but it also accepts an on

881
00:47:51,760 --> 00:47:56,520
change function. 
Whenever pressed is changed, we 

882
00:47:56,960 --> 00:48:02,000
we call in a callback and that 
callback can change whatever the

883
00:48:02,080 --> 00:48:05,320
the new state was going to be. 
So let's say click toggle 

884
00:48:05,680 --> 00:48:09,440
pressed was going to be true. 
But inside my on press change 

885
00:48:09,440 --> 00:48:13,520
function I return another value 
that's going to be the actual 

886
00:48:13,520 --> 00:48:16,000
value of press. 
This is useful whenever you want

887
00:48:16,000 --> 00:48:18,280
to override certain behaviors 
within melt. 

888
00:48:18,800 --> 00:48:22,040
Sorry so. 
So here you could say instead of

889
00:48:22,040 --> 00:48:24,480
on, off, it's something else. 
Is that what you're saying? 

890
00:48:26,360 --> 00:48:27,240
No. 
Not. 

891
00:48:27,240 --> 00:48:29,080
Exactly. 
It's just I'm overriding just 

892
00:48:29,080 --> 00:48:31,360
the value of pressed. 
So let's say I wanted to click 

893
00:48:31,360 --> 00:48:34,320
toggle, but let's say I already 
clicked five times. 

894
00:48:34,440 --> 00:48:37,200
I had an internal con in my 
component and say after five 

895
00:48:37,200 --> 00:48:39,040
times it's not toggling anymore.
Like stop. 

896
00:48:39,040 --> 00:48:41,360
Like too much. 
Exactly. 

897
00:48:41,640 --> 00:48:46,040
So that's what I could do on my 
on change function then handle 

898
00:48:46,040 --> 00:48:49,360
toggle is just a function. 
It's pretty self-explanatory I 

899
00:48:49,360 --> 00:48:50,840
would say. 
It's just checking if it's 

900
00:48:50,840 --> 00:48:55,800
disabled or not before updating.
And we have the main part of 

901
00:48:55,800 --> 00:49:02,160
mouth, the builder helper. 
It's just a wrapper, a function 

902
00:49:02,160 --> 00:49:06,520
that accepts a name and some 
stars the. 

903
00:49:06,520 --> 00:49:07,920
Derived function. 
Return. 

904
00:49:07,920 --> 00:49:11,720
It's just a wrapper so we know 
what to use and an action. 

905
00:49:12,840 --> 00:49:15,440
The cool thing? 
Is here, we don't have root 

906
00:49:15,480 --> 00:49:19,360
attributes and root action. 
We just have the root star and 

907
00:49:19,360 --> 00:49:22,360
you can even do use root 
directly. 

908
00:49:22,880 --> 00:49:26,960
The builder function kind of 
just wraps it all up for us. 

909
00:49:27,680 --> 00:49:30,320
Then we just return everything, 
return the elements, we return 

910
00:49:30,320 --> 00:49:34,240
our pressed state, and we return
the options if you go a little 

911
00:49:34,240 --> 00:49:37,480
bit down. 
But I, I. 

912
00:49:37,480 --> 00:49:40,120
Skipped I I skipped the 
important part in actions. 

913
00:49:40,960 --> 00:49:47,040
In the action on line 48 forward
you can see some important 

914
00:49:47,040 --> 00:49:51,720
stuff. 1st instead. 
Of just doing event listener and

915
00:49:51,720 --> 00:49:54,680
then having to do remove. 
And stuff like that. 

916
00:49:55,320 --> 00:50:00,520
We have our own event listener 
editor that already returns a 

917
00:50:00,520 --> 00:50:01,200
call. 
Back. 

918
00:50:01,880 --> 00:50:05,680
That automatically deletes that 
event listeners, but also. 

919
00:50:06,640 --> 00:50:10,560
Add multi event. 
Listener does something else it 

920
00:50:10,960 --> 00:50:17,920
whenever you click it, it also 
emits a custom event which is M 

921
00:50:18,040 --> 00:50:22,640
for melt dash click if you 
prevent default that event 

922
00:50:22,640 --> 00:50:25,480
nothing happens like the handle 
toggle just won't run. 

923
00:50:25,840 --> 00:50:30,560
We normally expose those custom 
events for any event that we 

924
00:50:30,560 --> 00:50:32,960
listen to. 
This is all. 

925
00:50:32,960 --> 00:50:35,920
We all have an example of this 
in the docs if you want to see. 

926
00:50:36,160 --> 00:50:38,840
Yeah, because I'm. 
Like a little little confused on

927
00:50:38,840 --> 00:50:39,760
that one. 
Where's that at? 

928
00:50:40,200 --> 00:50:42,240
Let's go to mount. 
The website OK. 

929
00:50:44,200 --> 00:50:46,080
Get started. 
Or. 

930
00:50:46,280 --> 00:50:47,840
Yeah. 
And now we can go to select. 

931
00:50:49,600 --> 00:50:53,360
There's a lot of builders and 
now let's go to example 

932
00:50:53,360 --> 00:50:55,840
components change options with 
keyboard. 

933
00:50:57,400 --> 00:51:02,240
Exactly. 
So normally, yeah, use your 

934
00:51:02,240 --> 00:51:05,800
arrow keys now. 
See how that works? 

935
00:51:06,000 --> 00:51:08,960
This is custom behavior because 
if you do that on the component 

936
00:51:08,960 --> 00:51:13,040
above you, that won't happen. 
How do we do? 

937
00:51:13,040 --> 00:51:16,240
This yeah, you can click, click 
and now keyboard it's just going

938
00:51:16,240 --> 00:51:19,720
to open it again. 
So so the way we had to do this 

939
00:51:19,720 --> 00:51:24,360
is to override the the keyboard 
event listener, right? 

940
00:51:24,360 --> 00:51:26,960
We need to cancel the original 
one and do something on top. 

941
00:51:26,960 --> 00:51:29,800
So if you click view code you 
can see exactly how we do that 

942
00:51:30,840 --> 00:51:31,560
go. 
Down. 

943
00:51:31,600 --> 00:51:34,160
A little bit until you see a lot
of code. 

944
00:51:38,160 --> 00:51:39,760
Yeah, see that's. 
A lot of code. 

945
00:51:40,200 --> 00:51:44,480
So we have, we have oops, you 
can go up a little bit. 

946
00:51:46,320 --> 00:51:49,840
Says use M as. 
Or on M key down as the start. 

947
00:51:50,360 --> 00:51:53,080
Yeah, exactly. 
This is the custom event we do 

948
00:51:53,480 --> 00:51:56,640
when when we're doing preventive
fault there, we're canceling the

949
00:51:56,640 --> 00:52:01,560
default builder behavior. 
We can also cancel the original 

950
00:52:01,560 --> 00:52:04,480
event, the original key down 
because I don't want page scroll

951
00:52:04,480 --> 00:52:08,080
to happen and then we just do 
our custom logic there. 

952
00:52:08,600 --> 00:52:14,320
So this is a really underrated 
feature of mouth in my opinion. 

953
00:52:14,680 --> 00:52:17,280
It allows you to normally when 
even when using headless 

954
00:52:17,280 --> 00:52:20,840
libraries you don't completely 
own it, you still like. 

955
00:52:21,560 --> 00:52:25,320
If I don't want a certain 
behavior, I need to rely on the 

956
00:52:25,320 --> 00:52:27,160
props that a library has given 
me. 

957
00:52:27,160 --> 00:52:30,760
And if there's no props for what
I want, then I'm stuck. 

958
00:52:31,240 --> 00:52:35,280
Which is not necessarily bad, 
Design constraints can be good, 

959
00:52:35,520 --> 00:52:40,600
but Melt allows you to to go a 
little bit above and beyond if 

960
00:52:40,600 --> 00:52:42,600
you want. 
You don't need to. 

961
00:52:42,600 --> 00:52:44,760
Hey, I'm just going to implement
everything myself. 

962
00:52:44,760 --> 00:52:46,560
Screw melt. 
I'm uninstalling. 

963
00:52:47,000 --> 00:52:49,960
You can you can do this. 
How do either? 

964
00:52:49,960 --> 00:52:53,160
Of those. 
Ways affect accessibility? 

965
00:52:53,160 --> 00:52:55,560
Like is one more accessible than
the other? 

966
00:52:55,560 --> 00:52:58,800
Because one seems to be the 
default behaviour I mean. 

967
00:52:59,520 --> 00:53:02,160
Yeah, you need to be concerned. 
It depends on what you're doing 

968
00:53:02,240 --> 00:53:03,560
it. 
It's not necessarily. 

969
00:53:03,760 --> 00:53:07,080
This isn't necessarily an 
accessible if I'm not mistaken. 

970
00:53:07,280 --> 00:53:10,760
But yeah, you would need to 
check if the behavior overriding

971
00:53:11,400 --> 00:53:13,760
ruins accessible accessibility 
or not. 

972
00:53:14,760 --> 00:53:15,920
It's. 
Definitely a consideration. 

973
00:53:15,920 --> 00:53:18,000
To have whenever. 
Doing this like melt does help 

974
00:53:18,000 --> 00:53:21,000
you create accessible stuff, but
it doesn't prevent you. 

975
00:53:22,240 --> 00:53:23,160
To me it. 
Seems. 

976
00:53:23,160 --> 00:53:26,640
Like the way that this one is 
functioning with being able to 

977
00:53:26,640 --> 00:53:30,040
hit the down arrow and go down 
the list inside of the select 

978
00:53:30,040 --> 00:53:34,200
box is more accessible, but I 
just don't know. 

979
00:53:34,760 --> 00:53:39,080
And it feels like accessibility 
too sometimes is just like up to

980
00:53:39,080 --> 00:53:42,720
the person like implementing it 
like we don't have there. 

981
00:53:42,720 --> 00:53:46,600
There is W CAG and like things 
that you can go by, but there's 

982
00:53:46,600 --> 00:53:49,840
also like lots of different 
opinions about their for sure 

983
00:53:50,040 --> 00:53:51,880
which is more accessible and 
which isn't. 

984
00:53:52,400 --> 00:53:54,560
Yeah. 
It's, it's nuance. 

985
00:53:54,640 --> 00:53:56,760
There's no right thing 
sometimes. 

986
00:53:56,760 --> 00:54:00,000
Like they are at the end of the 
day, the accessibility 

987
00:54:00,000 --> 00:54:02,320
guidelines we have, there are 
standards that have been kind of

988
00:54:02,320 --> 00:54:04,360
agreed upon. 
But then again, as you said, 

989
00:54:04,360 --> 00:54:07,360
there are some stuff that just 
hasn't been agreed upon yet. 

990
00:54:07,360 --> 00:54:10,560
There hasn't been some 
discussion or the discussion 

991
00:54:10,560 --> 00:54:12,880
hasn't reached like a formal 
point yet. 

992
00:54:13,280 --> 00:54:15,880
Or sometimes there's also 
optional behavior, like even 

993
00:54:16,120 --> 00:54:18,200
with accordions. 
For example, we have event 

994
00:54:18,200 --> 00:54:21,440
listeners for home and and to go
to the top accordion at the 

995
00:54:21,440 --> 00:54:23,800
bottom one. 
But that's optional, right? 

996
00:54:23,800 --> 00:54:26,760
So let's say you want to disable
that with Mel accordion. 

997
00:54:26,960 --> 00:54:28,760
Is a. 
Great one, yeah. 

998
00:54:29,320 --> 00:54:32,120
Because detail summary. 
Is not an accordion. 

999
00:54:32,240 --> 00:54:33,840
Yeah, I mean. 
Yeah, that's true. 

1000
00:54:33,840 --> 00:54:37,600
Actually they are having like a 
prop that allows you to like 

1001
00:54:38,000 --> 00:54:40,560
only click one and only be one 
be open. 

1002
00:54:40,720 --> 00:54:44,560
I think this is not already has 
it. 

1003
00:54:44,880 --> 00:54:47,920
The standard union has it. 
Yeah. 

1004
00:54:48,400 --> 00:54:51,440
But yeah, the day of summary is 
kind of more like the 

1005
00:54:51,440 --> 00:54:54,200
collapsible component we have 
there, which is a coordinate 

1006
00:54:54,200 --> 00:54:56,960
that's alone. 
Cool. 

1007
00:54:57,640 --> 00:55:03,320
So if just another time check we
have 34 minutes left, should we 

1008
00:55:03,320 --> 00:55:06,680
actually use melt to create 
something? 

1009
00:55:07,040 --> 00:55:08,760
We can't do that. 
OK, we can't do it. 

1010
00:55:09,480 --> 00:55:12,240
Where do we get? 
Started with melt, so we should 

1011
00:55:12,240 --> 00:55:13,320
probably. 
Get clone. 

1012
00:55:13,520 --> 00:55:15,400
Oh, wait. 
OK. 

1013
00:55:15,400 --> 00:55:17,160
Yeah, I thought you. 
Were going to say like let's 

1014
00:55:17,160 --> 00:55:19,240
create a new builder on melt 
but. 

1015
00:55:20,840 --> 00:55:23,040
I I mean we can. 
I mean that, but that. 

1016
00:55:23,040 --> 00:55:24,720
Would be. 
Maybe that would be too much. 

1017
00:55:24,960 --> 00:55:26,400
You can use. 
The same. 

1018
00:55:26,400 --> 00:55:29,200
Repo. 
You've already got started, that

1019
00:55:29,240 --> 00:55:30,360
is true. 
That is. 

1020
00:55:30,360 --> 00:55:34,080
True, let's do. 
That let's do that. 

1021
00:55:34,080 --> 00:55:36,880
I'm just kind of thinking. 
Of a person like hey this melt 

1022
00:55:36,880 --> 00:55:41,080
thing sounds cool I want to get 
started using in my project how 

1023
00:55:41,080 --> 00:55:43,000
yeah let me. 
Just check. 

1024
00:55:43,000 --> 00:55:45,920
One thing, that's the toggle. 
Go to toggle and melt OK. 

1025
00:55:47,840 --> 00:55:48,520
I want to see. 
If we have. 

1026
00:55:48,520 --> 00:55:52,560
ACSS example for that most of 
them only have Tailwind. 

1027
00:55:52,600 --> 00:55:56,120
We can install Tailwind. 
So go to the top. 

1028
00:55:57,040 --> 00:55:59,560
We can do a spelt add. 
Yeah. 

1029
00:56:00,040 --> 00:56:01,960
Go to. 
Yeah, let's do that then. 

1030
00:56:01,960 --> 00:56:04,480
I like Tailwind. 
I think you do too. 

1031
00:56:04,760 --> 00:56:06,760
Yeah, we love Tailwind. 
Awesome. 

1032
00:56:06,760 --> 00:56:08,920
Let's. 
Do spelt add tailwind then it's 

1033
00:56:08,920 --> 00:56:14,320
NPX or PNPMDLXI. 
Have no idea PNPX. 

1034
00:56:14,760 --> 00:56:20,360
Spelt dash add Spelt dash 
everything together. 

1035
00:56:20,480 --> 00:56:25,560
No Spelt dash add. 
No spaces together. 

1036
00:56:26,960 --> 00:56:29,120
Together, Together and then. 
Face. 

1037
00:56:29,120 --> 00:56:35,560
Tailwind CSS at latest. 
Isn't that spelt at? 

1038
00:56:36,200 --> 00:56:37,720
The latest no. 
Oh, awesome. 

1039
00:56:37,840 --> 00:56:41,400
OK, I always. 
Throw it on there as like AI 

1040
00:56:41,400 --> 00:56:42,880
never know what it's going to 
grab. 

1041
00:56:43,320 --> 00:56:45,520
Yeah, I always thought it. 
Was, but I thought it was felt 

1042
00:56:45,520 --> 00:56:48,200
at at latest then tailwind we've
probably done. 

1043
00:56:48,560 --> 00:56:50,520
This cool see what? 
The heck changed? 

1044
00:56:50,520 --> 00:56:54,240
But. 
Cool now. 

1045
00:56:55,280 --> 00:56:58,840
I don't know, let's check if 
everything works Melt. 

1046
00:56:58,840 --> 00:57:00,760
Because. 
We didn't install Melt yet. 

1047
00:57:01,360 --> 00:57:03,400
Yeah, let's just see. 
If tailwind is working. 

1048
00:57:03,400 --> 00:57:05,680
Yeah, I don't even see a. 
Tailwind in here, so I don't 

1049
00:57:05,680 --> 00:57:09,200
think that's worse. 
Yeah, maybe remove the. 

1050
00:57:09,200 --> 00:57:11,600
Latest. 
I always go back to my. 

1051
00:57:11,600 --> 00:57:17,040
Like uncoding cat if you just do
tailwind one command. 

1052
00:57:17,320 --> 00:57:19,400
Oh. 
That's it. 

1053
00:57:19,400 --> 00:57:20,920
It's missing. 
The latest just remove. 

1054
00:57:21,480 --> 00:57:24,160
The latest, I swear. 
I always put latest in there but

1055
00:57:24,360 --> 00:57:27,120
I do but I think it's on. 
Speltad, I don't think it's on 

1056
00:57:27,120 --> 00:57:28,640
Tailwind. 
There you go. 

1057
00:57:29,080 --> 00:57:33,800
Weird whole, I think it's. 
BMPX speltad at latest and then 

1058
00:57:33,800 --> 00:57:37,800
tailwind. 
Cool. 

1059
00:57:38,320 --> 00:57:39,920
Let's see. 
I think we're close. 

1060
00:57:40,720 --> 00:57:41,640
Cool. 
What do we? 

1061
00:57:41,640 --> 00:57:44,600
Want to throw in a a test just 
to make sure? 

1062
00:57:45,000 --> 00:57:46,720
Yeah, let's. 
Let's do that. 

1063
00:57:47,200 --> 00:57:59,120
Oops. 
I think we're running. 

1064
00:57:59,680 --> 00:58:06,640
Yeah, yeah, yeah. 
Maybe reset the? 

1065
00:58:06,640 --> 00:58:08,520
Server I mean. 
Try to restart it though. 

1066
00:58:08,520 --> 00:58:13,560
Yeah, like B. 
And our toggle. 

1067
00:58:13,600 --> 00:58:15,920
Looks nothing like a button 
because of tailwinds. 

1068
00:58:16,760 --> 00:58:17,960
Obnoxious. 
Reset. 

1069
00:58:18,320 --> 00:58:19,840
Oh oh. 
That is. 

1070
00:58:19,840 --> 00:58:22,680
Kind of a really bad that's 
exaggerated. 

1071
00:58:22,680 --> 00:58:25,400
I don't think I've seen that on 
a button before because I always

1072
00:58:25,400 --> 00:58:26,920
end up using skeleton right 
away. 

1073
00:58:27,400 --> 00:58:30,680
I say. 
I have been using Uno cssa lot 

1074
00:58:30,680 --> 00:58:32,520
and it lets you customize the 
reset. 

1075
00:58:32,880 --> 00:58:35,840
I love it. 
But anyways. 

1076
00:58:35,840 --> 00:58:38,680
We can also go ahead and install
Melt, I guess, OK. 

1077
00:58:39,360 --> 00:58:41,440
Let's go to the melt. 
Website, OK. 

1078
00:58:42,440 --> 00:58:45,280
Go to the. 
Yeah, you can copy. 

1079
00:58:45,280 --> 00:58:48,200
That command. 
Uno is also by. 

1080
00:58:48,200 --> 00:58:51,000
Ant food right it. 
Is. 

1081
00:58:51,000 --> 00:58:52,760
It is, yeah. 
Uno is amazing. 

1082
00:58:55,320 --> 00:58:58,040
I want to. 
I wanted to convert the docks to

1083
00:58:58,040 --> 00:59:02,800
use it but too much of A hassle.
And it's going. 

1084
00:59:02,800 --> 00:59:06,560
To ruin our tailwind examples. 
I'm kind of. 

1085
00:59:07,320 --> 00:59:09,920
So if we have. 
Time. 

1086
00:59:10,240 --> 00:59:11,880
There's something I want to talk
about with Melt. 

1087
00:59:11,880 --> 00:59:15,560
We can get to that later. 
Cool. 

1088
00:59:16,080 --> 00:59:19,120
Anything I should? 
Check to see if it's working OK,

1089
00:59:19,120 --> 00:59:22,120
we can. 
Change our toggle component to 

1090
00:59:22,120 --> 00:59:24,880
actually use melt. 
OK, so let's go to toggle. 

1091
00:59:27,600 --> 00:59:29,320
That's felt. 
Yep. 

1092
00:59:30,760 --> 00:59:32,920
OK. 
Yeah, and let's do create 

1093
00:59:32,920 --> 00:59:36,120
toggle, but from melt instead. 
So let's change that import to 

1094
00:59:36,120 --> 00:59:39,000
be at melt that's. 
Felt, yeah. 

1095
00:59:39,000 --> 00:59:40,120
That's felt one. 
Yep. 

1096
00:59:40,920 --> 00:59:42,640
And now let's remove all of 
these. 

1097
00:59:43,800 --> 00:59:53,080
Oops, now construction open an 
empty object equals create 

1098
00:59:53,080 --> 01:00:01,480
toggle No, no outside, sorry. 
Cool. 

1099
01:00:01,520 --> 01:00:04,440
And now inside the. 
Object we can do elements. 

1100
01:00:06,120 --> 01:00:08,040
Trigger I mean. 
Sorry, column. 

1101
01:00:09,360 --> 01:00:12,080
So elements column, is it 
column? 

1102
01:00:12,080 --> 01:00:16,440
Yeah, exactly. 
Curly braces trigger. 

1103
01:00:18,600 --> 01:00:20,160
No, it's root actually. 
Sorry. 

1104
01:00:20,280 --> 01:00:22,080
Yeah, I should name change that 
name. 

1105
01:00:22,960 --> 01:00:26,680
Benefits of not having released 
one point O yet. 

1106
01:00:27,040 --> 01:00:28,840
Cool. 
And now outside elements, but 

1107
01:00:28,840 --> 01:00:31,280
still inside that object, we're 
going to do states. 

1108
01:00:32,720 --> 01:00:35,080
So comma states. 
Open. 

1109
01:00:35,080 --> 01:00:36,360
Object. 
And pressed. 

1110
01:00:37,800 --> 01:00:38,920
So everything's going to be 
really. 

1111
01:00:38,920 --> 01:00:41,440
Similar, we're just going to 
remove that trigger attributes 

1112
01:00:41,440 --> 01:00:43,160
and action remove everything 
like. 

1113
01:00:44,160 --> 01:00:46,240
Just the whole. 
And the action. 

1114
01:00:46,400 --> 01:00:47,880
And the action too. 
Yeah, the whole thing. 

1115
01:00:47,920 --> 01:00:49,280
OK. 
Now we're going to do. 

1116
01:00:49,280 --> 01:00:52,720
Use. 
Column. 

1117
01:00:52,960 --> 01:00:56,560
Yeah, melt. 
And Melt's going to be an. 

1118
01:00:56,560 --> 01:00:59,880
Import so you can do enter. 
Oh, gotcha. 

1119
01:01:00,600 --> 01:01:03,880
And then? 
Equals open. 

1120
01:01:03,880 --> 01:01:05,760
Yep. 
And then you're going to do 

1121
01:01:06,040 --> 01:01:10,800
dollar sign root. 
Beautiful. 

1122
01:01:11,120 --> 01:01:12,480
That's it. 
Let's try it out. 

1123
01:01:13,240 --> 01:01:15,080
Oh. 
Actually, that's not it. 

1124
01:01:15,240 --> 01:01:16,880
The data press needs to be 
changed. 

1125
01:01:16,880 --> 01:01:19,600
It should be data state on the 
style. 

1126
01:01:22,120 --> 01:01:24,080
So state. 
Equals. 

1127
01:01:25,960 --> 01:01:27,800
Here. 
Yeah, comma. 

1128
01:01:30,120 --> 01:01:35,800
No, not. 
Comma quotes, quotes, quotes on.

1129
01:01:37,200 --> 01:01:38,160
Cool. 
I think that's it. 

1130
01:01:38,160 --> 01:01:43,120
Now let's try. 
Oh, because you named it. 

1131
01:01:43,120 --> 01:01:46,400
On and off. 
So it's a data state attribute 

1132
01:01:46,640 --> 01:01:48,800
on and off, right? 
Exactly. 

1133
01:01:48,920 --> 01:01:51,200
Exactly. 
So there are some API 

1134
01:01:51,200 --> 01:01:54,720
inconsistencies in mouth due to 
the sheer volume of filters we 

1135
01:01:54,720 --> 01:01:57,920
have and it's still not being 
one point O yet. 

1136
01:01:58,040 --> 01:02:00,880
So sometimes we have these like 
toggle was one of the earlier 

1137
01:02:00,880 --> 01:02:02,480
components. 
So yeah. 

1138
01:02:03,240 --> 01:02:04,920
Maybe I should? 
Change the data press too. 

1139
01:02:06,200 --> 01:02:07,440
They're so. 
Annoying. 

1140
01:02:08,240 --> 01:02:09,520
Cool. 
I think that's. 

1141
01:02:10,120 --> 01:02:12,760
Kind of it for that. 
Now what we can do? 

1142
01:02:13,000 --> 01:02:14,560
We could either. 
We could style it. 

1143
01:02:14,560 --> 01:02:18,560
We could try some more advanced 
builders as well. 

1144
01:02:19,520 --> 01:02:21,480
It's all up to us. 
To be honest, what could you 

1145
01:02:21,480 --> 01:02:23,880
even We can just copy, do an ad 
apply? 

1146
01:02:23,880 --> 01:02:27,800
And do Lange post CSS. 
Get your tailwind. 

1147
01:02:27,800 --> 01:02:29,800
In there, no or just put. 
It on the. 

1148
01:02:30,320 --> 01:02:31,680
Class. 
And do. 

1149
01:02:34,080 --> 01:02:36,120
That I don't. 
Know right on here, but you can.

1150
01:02:36,360 --> 01:02:37,240
You can. 
Also copy. 

1151
01:02:37,240 --> 01:02:39,600
Melt's example, which is pretty.
Oh yes. 

1152
01:02:40,320 --> 01:02:42,200
That would be nice to call 
somebody. 

1153
01:02:42,800 --> 01:02:46,960
On Twitter has been like 
complaining so much about. 

1154
01:02:47,800 --> 01:02:48,960
The the copy. 
Pasta. 

1155
01:02:49,240 --> 01:02:51,760
Tailwind, yeah. 
Copy pasta. 

1156
01:02:52,320 --> 01:02:53,880
Oh yeah. 
Wait, I. 

1157
01:02:53,880 --> 01:02:56,160
Saw that. 
I saw that actually, yeah. 

1158
01:02:58,120 --> 01:03:00,000
Oof oof. 
That does not look good. 

1159
01:03:01,120 --> 01:03:02,000
Why is it? 
Like that? 

1160
01:03:02,120 --> 01:03:03,320
Let's just take the width. 
Sir. 

1161
01:03:03,360 --> 01:03:05,680
Oh yeah, the width. 
But still. 

1162
01:03:05,920 --> 01:03:07,080
Give. 
It some padding. 

1163
01:03:12,120 --> 01:03:15,240
That's going to be. 
Ginormous the scale. 

1164
01:03:15,360 --> 01:03:16,600
Of. 
Also. 

1165
01:03:16,640 --> 01:03:18,880
Change. 
Magnum to like orange maybe? 

1166
01:03:20,840 --> 01:03:22,560
Yeah, you have some custom. 
Colors. 

1167
01:03:22,560 --> 01:03:26,040
So it has to be tailwind colors.
Fun fact. 

1168
01:03:26,200 --> 01:03:32,640
Magnum Melts UI logo is based on
my favorite popsicle which is 

1169
01:03:32,640 --> 01:03:34,920
called Magnum. 
Oh, OK. 

1170
01:03:35,320 --> 01:03:37,160
I was wondering why it was a 
popsicle. 

1171
01:03:37,520 --> 01:03:38,480
Yeah. 
I mean. 

1172
01:03:38,520 --> 01:03:40,480
It's a popsicle because of the 
name, but yeah. 

1173
01:03:40,920 --> 01:03:42,760
Whoa. 
The inversion. 

1174
01:03:42,760 --> 01:03:47,160
Of Orange is interesting, yeah. 
Cool, now we have it. 

1175
01:03:47,160 --> 01:03:47,840
Looks better. 
The. 

1176
01:03:48,200 --> 01:03:50,280
Inverted way, Yeah, that's what 
I thought. 

1177
01:03:50,280 --> 01:03:52,920
Too. 
It is good. 

1178
01:03:53,160 --> 01:03:58,440
Looking cool. 
So wow, we just dropped and melt

1179
01:03:58,440 --> 01:04:00,520
and you're good to go. 
Yeah, so. 

1180
01:04:00,520 --> 01:04:02,840
Basically one. 
Thing that is curious about it 

1181
01:04:02,880 --> 01:04:07,720
is you see though that use melt 
action that is not a normal 

1182
01:04:07,720 --> 01:04:11,320
action, that's something that 
gets converted. 

1183
01:04:11,320 --> 01:04:14,240
So go to the docs real quick, 
I'm going to show you something.

1184
01:04:16,000 --> 01:04:19,480
So go to toggle Yeah now. 
Do you see on the sidebar on the

1185
01:04:19,480 --> 01:04:21,320
bottom there's a preprocessor 
switch. 

1186
01:04:22,040 --> 01:04:24,400
Click on it. 
Have a helper. 

1187
01:04:24,400 --> 01:04:29,080
So basically. 
This is what? 

1188
01:04:30,240 --> 01:04:35,120
Melt syntax normally looks like,
but to avoid having to write all

1189
01:04:35,120 --> 01:04:38,720
of this, which can get a little 
bit annoying when you get with 

1190
01:04:38,720 --> 01:04:43,600
more complexing builders, we 
ship a preprocessor that gets 

1191
01:04:43,600 --> 01:04:47,040
that use MELT syntax and 
converts it to what you're 

1192
01:04:47,040 --> 01:04:49,240
seeing right there. 
So that's. 

1193
01:04:49,240 --> 01:04:52,600
What that use? 
Melt is we could just some 

1194
01:04:52,600 --> 01:04:55,560
people ask me why not use just 
an action from the get go and 

1195
01:04:55,560 --> 01:04:59,000
apply the attributes within the 
action and the reason is SSR 

1196
01:04:59,040 --> 01:05:00,840
that's it. 
It's just. 

1197
01:05:01,000 --> 01:05:03,320
So you're saying? 
This part just remove that. 

1198
01:05:04,280 --> 01:05:05,920
Yeah, like, no, like. 
Let's say why? 

1199
01:05:05,920 --> 01:05:09,360
Why don't we just do use root? 
And have and. 

1200
01:05:09,360 --> 01:05:11,240
Make the action pass in the 
attributes. 

1201
01:05:11,880 --> 01:05:12,520
Gotcha. 
The reason? 

1202
01:05:12,520 --> 01:05:15,800
Is because of. 
SSR actions don't only work with

1203
01:05:15,800 --> 01:05:19,000
JavaScript, they only work when 
the browser is actually added 

1204
01:05:19,120 --> 01:05:22,600
and it makes sense. 
So yeah, there are some 

1205
01:05:22,600 --> 01:05:24,480
libraries that have a similar. 
Yeah. 

1206
01:05:24,480 --> 01:05:27,680
One thing that I always want to 
show, like MELT is inspired by 

1207
01:05:27,680 --> 01:05:31,920
other similar approaches to name
I feel like Zag JS. 

1208
01:05:32,160 --> 01:05:36,600
There's the headless UI by 
there, there the headless UI 

1209
01:05:36,600 --> 01:05:39,960
Spout board by Captain Code man,
there's Grail UI. 

1210
01:05:40,480 --> 01:05:44,160
So they have similar approaches 
but they all are a bit 

1211
01:05:44,160 --> 01:05:47,600
different. 
Headless UI if I'm not mistaken 

1212
01:05:48,480 --> 01:05:52,680
uses only actions I think. 
I'm not sure so they're not. 

1213
01:05:52,840 --> 01:05:54,880
Able to be SSR? 
Yeah, Gray. 

1214
01:05:54,920 --> 01:05:58,760
UI. 
Does do they have one single 

1215
01:05:58,760 --> 01:06:02,440
action at the root, but they 
also have attributes sprinkled 

1216
01:06:02,440 --> 01:06:03,960
in. 
So it's the most similar. 

1217
01:06:04,160 --> 01:06:07,840
And Zach, Zach is pretty 
similar, but they don't have 

1218
01:06:07,960 --> 01:06:11,080
they don't have a scout version.
Maybe I had one more. 

1219
01:06:11,080 --> 01:06:14,120
Question about the code to Alex,
if you could put that back up 

1220
01:06:14,480 --> 01:06:18,800
the data attribute on the style,
is that documented somewhere? 

1221
01:06:18,800 --> 01:06:22,560
How to use that to style these? 
I don't think it's. 

1222
01:06:23,320 --> 01:06:25,920
Well documented. 
What I think Belt's biggest 

1223
01:06:25,920 --> 01:06:29,800
weakens, sorry weaknesses is the
documentation. 

1224
01:06:29,960 --> 01:06:33,800
We do, we do document it is 
super hard. 

1225
01:06:34,120 --> 01:06:35,880
We do document that we have the 
data state. 

1226
01:06:35,880 --> 01:06:38,400
So if you go down a bit on API 
reference, oh, I see. 

1227
01:06:38,400 --> 01:06:40,600
OK. 
Really down. 

1228
01:06:40,600 --> 01:06:43,400
Yeah, more down roots. 
There it is. 

1229
01:06:43,400 --> 01:06:46,160
You see data state right? 
And this? 

1230
01:06:46,560 --> 01:06:49,920
What are you using under the 
hood for this For this? 

1231
01:06:50,480 --> 01:06:52,960
Manual typing. 
Oh, you're doing? 

1232
01:06:52,960 --> 01:06:55,400
Manual. 
Typing there's a a thing. 

1233
01:06:55,520 --> 01:06:56,520
Yeah, we want. 
To change. 

1234
01:06:56,520 --> 01:06:59,160
It to be automatic, so is it 
spelled? 

1235
01:06:59,800 --> 01:07:02,000
No, no, no. 
Because spelled, if I'm not 

1236
01:07:02,000 --> 01:07:04,920
mistaken, is only for spelled 
components and since we don't 

1237
01:07:05,120 --> 01:07:09,800
use felt components, it's 
worthless for us what we what 

1238
01:07:10,120 --> 01:07:13,160
Hunter was investigating using 
Typedoc. 

1239
01:07:13,160 --> 01:07:17,960
There are some things that work 
with like type TS doc and then 

1240
01:07:17,960 --> 01:07:20,680
just automatically generate an 
API reference because they 

1241
01:07:21,040 --> 01:07:23,080
create a Jason and you just use 
that. 

1242
01:07:23,960 --> 01:07:26,000
I really want that astrodocks 
do. 

1243
01:07:26,000 --> 01:07:27,040
Something. 
Oh yeah, I saw a. 

1244
01:07:27,080 --> 01:07:29,080
Typedoc in there Starlight does 
that. 

1245
01:07:29,760 --> 01:07:31,800
I think I. 
Think Starlight does, but that's

1246
01:07:31,800 --> 01:07:35,800
I could be wrong so. 
Basically, one thing I wanted to

1247
01:07:35,800 --> 01:07:40,240
to share about Poofmouth is with
rooms comes an important 

1248
01:07:40,240 --> 01:07:43,200
decision making. 
I haven't brought this out in 

1249
01:07:43,200 --> 01:07:45,520
the public, but. 
You are now. 

1250
01:07:46,000 --> 01:07:49,800
I am now. 
So basically there are two. 

1251
01:07:49,800 --> 01:07:51,960
Approaches I have. 
Discussed this with 102. 

1252
01:07:52,000 --> 01:07:55,360
There are two approaches, so one
is the straightforward 1, but 

1253
01:07:55,360 --> 01:07:58,880
really hard one is just. 
Let's convert the whole code 

1254
01:07:58,880 --> 01:08:01,680
base to Rooms. 
It's not hard because Rooms is 

1255
01:08:01,680 --> 01:08:04,480
hard. 
The opposite, Rooms would make 

1256
01:08:04,480 --> 01:08:08,720
the code base quite simpler. 
I would say it's hard because 

1257
01:08:09,000 --> 01:08:14,360
it's rewriting the entire MELT 
code base and the other approach

1258
01:08:14,840 --> 01:08:15,920
would. 
Be. 

1259
01:08:15,920 --> 01:08:18,080
To. 
To. 

1260
01:08:18,080 --> 01:08:19,960
Have an. 
Adapter logic. 

1261
01:08:19,960 --> 01:08:23,279
So we kind of keep the current 
logic and then we create an 

1262
01:08:23,279 --> 01:08:25,920
adapter for runes. 
That could be. 

1263
01:08:25,920 --> 01:08:29,359
Cool, it's something I'm 
experimenting with. 

1264
01:08:30,279 --> 01:08:31,359
I also. 
Heard comments like. 

1265
01:08:31,359 --> 01:08:35,600
Hey, why don't you change spelt 
stars to use nano stars? 

1266
01:08:35,800 --> 01:08:39,359
Nano stars is a library which 
has a really similar syntax to 

1267
01:08:39,359 --> 01:08:41,960
spelt stars, but it's framework 
agnostic. 

1268
01:08:43,000 --> 01:08:46,000
If I change. 
Mouths stars to nano stars and 

1269
01:08:46,000 --> 01:08:50,040
stop using any others fault 
requirements which is just on 

1270
01:08:50,040 --> 01:08:54,479
mount I think could be. 
Completely agnostic. 

1271
01:08:55,800 --> 01:08:57,479
I have done some. 
Experiments. 

1272
01:08:58,760 --> 01:09:01,399
It works quite well if. 
You're. 

1273
01:09:01,399 --> 01:09:03,800
Curious, I can share my screen 
real quick. 

1274
01:09:04,160 --> 01:09:08,479
Yes, but. 1st I need to know 
where is hunter? 

1275
01:09:10,600 --> 01:09:13,399
Hunter. 
Is yeah, he is helping quite a 

1276
01:09:13,399 --> 01:09:16,399
lot, not only with melt. 
Hunter is kind of a madman. 

1277
01:09:16,399 --> 01:09:20,840
He does so many awesome projects
with Smout and just does it all 

1278
01:09:20,840 --> 01:09:23,720
at once. 
And besides like work, he also 

1279
01:09:23,720 --> 01:09:27,479
is a working a working man. 
But he has recently done the 

1280
01:09:27,560 --> 01:09:30,439
melt date picker and calendar 
and stuff like that, which was 

1281
01:09:30,439 --> 01:09:33,120
insane. 
I know he's quite busy too with 

1282
01:09:33,240 --> 01:09:37,760
making the bits docs just be 
better in general, like 

1283
01:09:37,760 --> 01:09:40,399
redesigning, writing some more 
stuff. 

1284
01:09:40,640 --> 01:09:43,160
And there's also all the 
maintenance going on, on shed 

1285
01:09:43,160 --> 01:09:45,600
sense felt. 
So yeah, he does a lot of stuff.

1286
01:09:45,600 --> 01:09:49,000
I only do melt and and work and 
other stuff and I really feel 

1287
01:09:49,000 --> 01:09:52,800
like this is a lot and Hunter 
just goes and does it all. 

1288
01:09:53,359 --> 01:09:56,160
So yeah, he's a busy. 
Busy person? 

1289
01:09:57,520 --> 01:10:00,960
OK, now you can share. 
Whatever you'd like. 

1290
01:10:01,000 --> 01:10:03,000
Well, cool, happily put it on 
the screen. 

1291
01:10:03,600 --> 01:10:04,320
Awesome. 
Let. 

1292
01:10:04,320 --> 01:10:07,560
Me. 
This is not a screen prepared to

1293
01:10:07,600 --> 01:10:09,680
be on a podcast. 
Let me close stuff. 

1294
01:10:11,640 --> 01:10:14,760
I should. 
There's a Mac App that remember,

1295
01:10:14,760 --> 01:10:18,560
like present mode that's just 
closes anything that's not 

1296
01:10:18,560 --> 01:10:20,000
relevant. 
Yeah, I. 

1297
01:10:20,000 --> 01:10:22,720
Forgot which. 
One it is, but anyways I don't 

1298
01:10:22,720 --> 01:10:24,440
need that I'm should add a ray 
cast. 

1299
01:10:24,440 --> 01:10:27,320
Extension for it. 
Yeah, that's true. 

1300
01:10:27,480 --> 01:10:28,960
I love Ray cast I'm. 
I'm going to. 

1301
01:10:29,720 --> 01:10:32,320
That's where Pedro is working 
now and that's what we talked to

1302
01:10:32,320 --> 01:10:36,160
Pedro this morning about is Ray 
cast and building extensions. 

1303
01:10:36,720 --> 01:10:38,040
So that's what you can. 
Build. 

1304
01:10:38,240 --> 01:10:43,000
Is a Mac present mode extension.
Yeah, if it doesn't exist 

1305
01:10:43,000 --> 01:10:45,360
already. 
Oh, can you all see my? 

1306
01:10:45,360 --> 01:10:46,640
Screen. 
Oh, just one. 

1307
01:10:47,240 --> 01:10:48,960
Can see Alex's. 
Screen. 

1308
01:10:49,000 --> 01:10:51,400
There we go. 
OK, wait. 

1309
01:10:51,960 --> 01:10:54,480
Can you now see my screen? 
Yep, awesome. 

1310
01:10:54,480 --> 01:10:56,920
So let me close. 
So you may have to. 

1311
01:10:57,480 --> 01:11:00,480
Enlarge and zoom quite a bit 
though, yeah, no worries. 

1312
01:11:00,480 --> 01:11:05,320
So first let me open. 
What we're playing around with. 

1313
01:11:05,520 --> 01:11:11,440
So I've been playing around with
the the notion of agnostic melt.

1314
01:11:11,440 --> 01:11:13,720
This is something I call 
agnostic tree. 

1315
01:11:13,720 --> 01:11:16,160
I've got one one of the 
builders. 

1316
01:11:16,160 --> 01:11:17,720
That we. 
Have that's not super complex 

1317
01:11:17,720 --> 01:11:21,320
but it's a bit and I tried to 
make it work with different 

1318
01:11:21,320 --> 01:11:27,400
frameworks even with vanilla JS.
This is using not melt but it's 

1319
01:11:27,400 --> 01:11:31,080
using something that I created 
using the same logic of mouth 

1320
01:11:31,360 --> 01:11:34,080
and it just works. 
This is spelt with stars. 

1321
01:11:34,080 --> 01:11:35,240
I'm going to show the code 
later. 

1322
01:11:36,360 --> 01:11:38,280
It's a spelt with rooms. 
It just works. 

1323
01:11:38,280 --> 01:11:40,320
This is solid and I'll prove it 
to you. 

1324
01:11:40,720 --> 01:11:45,320
This is not just spelt with 
solid iconic mitosis. 

1325
01:11:45,520 --> 01:11:48,200
From builder IO. 
Oh yeah, but. 

1326
01:11:48,200 --> 01:11:50,840
Mitosis, what it does right it 
gets the components and then 

1327
01:11:50,840 --> 01:11:55,360
compiles it this I created what 
I did is everything is created 

1328
01:11:55,360 --> 01:11:58,680
with an agnostic car so I have 
the builder here this is the 

1329
01:11:58,680 --> 01:12:02,760
tree builder it's really similar
to what we've seen in melt let 

1330
01:12:02,760 --> 01:12:08,080
me zoom in and you see I. 
Think is that's. 

1331
01:12:08,080 --> 01:12:09,240
Good. 
Yeah, that's cool. 

1332
01:12:09,720 --> 01:12:12,960
So we have stuff that's similar,
like atoms are the equivalent to

1333
01:12:12,960 --> 01:12:15,880
writables and stuff like that. 
Computed objects is the. 

1334
01:12:17,280 --> 01:12:19,920
It's derived and. 
Then you have make. 

1335
01:12:19,920 --> 01:12:24,080
Elements which is the we have 
possible dependencies, I'm 

1336
01:12:24,080 --> 01:12:25,640
sorry. 
This is all nano. 

1337
01:12:26,520 --> 01:12:29,480
This is like. 
Not all nano like atom is nano 

1338
01:12:29,480 --> 01:12:31,640
stores. 
This is something I created. 

1339
01:12:31,880 --> 01:12:33,800
Make elements is also something 
I created. 

1340
01:12:34,400 --> 01:12:35,640
Gotcha. 
I created a lot of helpers. 

1341
01:12:35,640 --> 01:12:38,960
I'm a helper guy. 
So each one. 

1342
01:12:38,960 --> 01:12:41,880
Can have each element can have 
dependencies, attributes and 

1343
01:12:41,880 --> 01:12:46,040
event listeners. 
And with this after I created 

1344
01:12:46,080 --> 01:12:49,000
all this I just do the same as 
in melt. 

1345
01:12:49,520 --> 01:12:55,320
I export it elements, States and
helpers and I use it. 

1346
01:12:55,320 --> 01:13:00,400
So if we go to tree dot. 
You see that it's? 

1347
01:13:00,400 --> 01:13:05,760
Pretty similar to what we have. 
We had and in melt. 

1348
01:13:06,040 --> 01:13:11,600
The difference is I don't do 
create tree and call. 

1349
01:13:11,600 --> 01:13:14,120
It a day. 
I have to wrap it with an 

1350
01:13:14,240 --> 01:13:17,960
adapter, so I created a svelt 
adapter for it. 

1351
01:13:18,320 --> 01:13:21,240
Each framework has its own 
adapter, but I only have to 

1352
01:13:21,240 --> 01:13:23,680
create an adapter once. 
I don't have to create it for 

1353
01:13:23,680 --> 01:13:27,000
every builder, which means I'm 
not like redoing a lot of logic,

1354
01:13:27,000 --> 01:13:30,480
it's just one adapter. 
This is really similar to Zag JS

1355
01:13:30,480 --> 01:13:33,600
approach, but the difference is 
Zag JS doesn't work with svelt, 

1356
01:13:33,760 --> 01:13:36,920
it doesn't work with vanilla JS,
It only works with rect, view 

1357
01:13:36,920 --> 01:13:39,320
and solid. 
This way it could work with 

1358
01:13:39,320 --> 01:13:42,760
potentially everything. 
If it works with vanilla, it 

1359
01:13:42,760 --> 01:13:44,640
should work with everything I 
assume. 

1360
01:13:44,640 --> 01:13:46,160
But we know. 
That's not. 

1361
01:13:46,160 --> 01:13:51,000
The case sometimes but I will 
experiment and then I just use 

1362
01:13:51,000 --> 01:13:55,760
it like I would normally like 
tree it's a it's a star and an 

1363
01:13:55,760 --> 01:13:58,960
action. 
The way I use it tree and then I

1364
01:13:58,960 --> 01:14:01,280
can do use tree dot action I 
guess. 

1365
01:14:01,800 --> 01:14:05,640
So yeah, that's it. 
And so you don't have your. 

1366
01:14:05,640 --> 01:14:09,480
Helper here, your preprocessor 
built into that I don't. 

1367
01:14:09,760 --> 01:14:11,200
But I. 
Could I could have it? 

1368
01:14:12,640 --> 01:14:16,440
And I even have rooms working 
too with the same code base. 

1369
01:14:16,440 --> 01:14:18,880
So three dot helpers, 3 dot 
elements. 

1370
01:14:19,600 --> 01:14:23,920
This is a sub component that 
also has everything in there. 

1371
01:14:24,400 --> 01:14:27,440
I have the react version working
which is just. 

1372
01:14:28,880 --> 01:14:33,760
Oops, I don't like. 
Looking at React Cool. 

1373
01:14:34,240 --> 01:14:37,680
Use components having to use 
hooks. 

1374
01:14:37,680 --> 01:14:40,840
React was the most painful to to
create, even though I of course 

1375
01:14:40,880 --> 01:14:41,960
it was. 
Can you? 

1376
01:14:42,040 --> 01:14:45,560
Yeah, but spell. 
Fan folks, Yeah. 

1377
01:14:45,600 --> 01:14:49,200
But The thing is, I'm more of a 
rectator than spelled fan. 

1378
01:14:50,440 --> 01:14:52,640
I'm joking. 
React is not bad everyone, I 

1379
01:14:52,640 --> 01:14:55,600
just like to kid I've I've I 
think I've coded more than react

1380
01:14:55,600 --> 01:14:57,440
in my life than in spell it 
unfortunately. 

1381
01:14:57,680 --> 01:14:59,640
Yeah, same. 
But. 

1382
01:15:00,440 --> 01:15:03,920
Anyways, there's also solid, 
which is also called juice. 

1383
01:15:03,920 --> 01:15:07,240
I'm sorry I didn't do view 
because I was too lazy. 

1384
01:15:09,800 --> 01:15:12,240
I think the most. 
Interesting to show though is 

1385
01:15:12,240 --> 01:15:15,080
vanilla. 
Vanilla JS is super different 

1386
01:15:15,080 --> 01:15:17,560
because you can't just do things
declaratively. 

1387
01:15:18,440 --> 01:15:21,320
What I did is I. 
Created. 

1388
01:15:21,560 --> 01:15:25,360
I did kind of like a. 
HTML attribute. 

1389
01:15:25,360 --> 01:15:29,960
Thingy. 
So what I do is I do data V from

1390
01:15:29,960 --> 01:15:33,800
vanilla tree and then so that 
looks like you. 

1391
01:15:36,440 --> 01:15:38,000
Damn. 
I need to do. 

1392
01:15:38,160 --> 01:15:40,560
Would you know what I should do?
I should do this? 

1393
01:15:42,080 --> 01:15:43,720
Vanilla OH. 
Ice cream. 

1394
01:15:45,520 --> 01:15:50,880
Yes, OK, so vanilla. 
It could be like this, but yeah 

1395
01:15:51,160 --> 01:15:56,200
it does look like field dev. 
But when I do these. 

1396
01:15:56,200 --> 01:15:59,320
HTML attributes and I call it my
builders with the vanilla JS 

1397
01:15:59,320 --> 01:16:02,680
adapter it just scans the Dom 
the not the Dom. 

1398
01:16:02,680 --> 01:16:05,040
But the document and. 
Done. 

1399
01:16:05,200 --> 01:16:07,800
And then it's. 
Adds the attributes and stuff 

1400
01:16:07,800 --> 01:16:11,800
like that and the event 
listeners to it given the HTML 

1401
01:16:11,800 --> 01:16:14,760
attributes. 
I do this inside here too. 

1402
01:16:14,920 --> 01:16:18,080
I can even add props to the the 
icon. 

1403
01:16:18,080 --> 01:16:22,480
So normally in spout, if you 
wanted to add a specific prop to

1404
01:16:22,480 --> 01:16:27,120
an element, if you would do. 
All in the store. 

1405
01:16:28,000 --> 01:16:29,040
It's. 
Actually a function in. 

1406
01:16:29,040 --> 01:16:32,480
This case, no. 
Yeah, it's a function and pass 

1407
01:16:32,480 --> 01:16:37,320
in some arguments and here we 
kind of do the same, but we do 

1408
01:16:37,320 --> 01:16:40,680
it with HML attributes. 
It does look a bit ugly on the 

1409
01:16:40,680 --> 01:16:44,240
Dom, yeah. 
So the props actually get added 

1410
01:16:44,240 --> 01:16:47,200
on the Dom, yeah. 
But it. 

1411
01:16:47,200 --> 01:16:49,440
Works. 
We could remove it too, like 

1412
01:16:49,440 --> 01:16:52,040
after it's read, it can only be 
read once anyway, so we could 

1413
01:16:52,040 --> 01:16:54,160
just remove it. 
We got a little hash. 

1414
01:16:54,160 --> 01:16:56,760
Class in there or something? 
A hash. 

1415
01:16:56,760 --> 01:16:59,160
Class I do it look at it ID. 
In. 

1416
01:16:59,160 --> 01:17:01,280
There at the end, kind of like 
spelt does the. 

1417
01:17:02,800 --> 01:17:03,600
Yeah. 
Oh, it's. 

1418
01:17:04,000 --> 01:17:06,560
It's because of Astro. 
Oh, OK. 

1419
01:17:06,840 --> 01:17:09,200
I'm using Astro to. 
Like just be able to write 

1420
01:17:09,200 --> 01:17:11,440
everything all at once. 
Gotcha. 

1421
01:17:12,000 --> 01:17:13,160
So yeah, with. 
If. 

1422
01:17:14,280 --> 01:17:17,160
This would be. 
It would be a have to rewrite 

1423
01:17:17,160 --> 01:17:20,480
them out too, but it's a it's a 
different approach that I'm 

1424
01:17:20,480 --> 01:17:24,560
willing to try, especially 
because of agnostic stuff, but I

1425
01:17:24,560 --> 01:17:27,200
still need to try like one. 
I don't want to compromise on 

1426
01:17:27,200 --> 01:17:31,160
spouts D DX in order to achieve 
this. 

1427
01:17:31,160 --> 01:17:36,240
So one possible approach that me
and Hunter discussed was like do

1428
01:17:36,240 --> 01:17:39,160
the two approaches at the same 
time, which is kind of insane. 

1429
01:17:39,160 --> 01:17:44,880
So in one end go and write stuff
in rooms, but at the same time 

1430
01:17:44,880 --> 01:17:47,640
try the agnostic approach, see 
which one fares better. 

1431
01:17:47,840 --> 01:17:51,320
Or maybe what I thought is like 
do the agnostic as a side 

1432
01:17:51,320 --> 01:17:54,560
project, if it works, eventually
becomes the main project. 

1433
01:17:55,240 --> 01:17:57,040
I don't know. 
It's something I'm willing to 

1434
01:17:57,040 --> 01:17:58,960
try. 
I have a. 

1435
01:17:58,960 --> 01:18:00,920
Question. 
Going back a little bit, we were

1436
01:18:00,920 --> 01:18:03,080
talking about spreading event 
listeners. 

1437
01:18:03,120 --> 01:18:06,800
Did we show that we did? 
We did with the rooms. 

1438
01:18:07,120 --> 01:18:09,680
Version SO. 
It just. 

1439
01:18:09,760 --> 01:18:12,920
Automatically like spreads them 
exactly it. 

1440
01:18:12,960 --> 01:18:17,120
Does like in the end like If I 
should I can show it even here 

1441
01:18:17,120 --> 01:18:18,720
so. 
Here. 

1442
01:18:19,280 --> 01:18:23,240
On my. 
Item element I declare my 

1443
01:18:23,240 --> 01:18:27,240
listener, so there's key down, 
there's click, there's focus and

1444
01:18:27,480 --> 01:18:31,760
if I go to tree dot rooms. 
And on tree. 

1445
01:18:31,760 --> 01:18:36,000
Dot inner I can even do like 
console dot log. 

1446
01:18:38,840 --> 01:18:42,720
Tree. 
Tree dot elements dot ITA I 

1447
01:18:42,760 --> 01:18:43,280
think. 
That's it. 

1448
01:18:44,160 --> 01:18:46,120
Yeah, just so I can. 
See. 

1449
01:18:46,160 --> 01:18:52,160
What's what's going on there 
when I do that object? 

1450
01:18:52,200 --> 01:18:54,640
And it has. 
My HTML attribute. 

1451
01:18:54,800 --> 01:18:56,280
How do I do a zoom? 
In here. 

1452
01:18:56,680 --> 01:18:58,440
Oh, here it is. 
So those are the ones. 

1453
01:18:58,440 --> 01:19:01,600
Coming from Melt, So Melt is 
giving you the event listeners 

1454
01:19:01,600 --> 01:19:05,280
and they're spreadable and 
you're not having to exactly I. 

1455
01:19:05,280 --> 01:19:08,240
Spread. 
Them this segment or so if you 

1456
01:19:08,240 --> 01:19:10,720
wanted. 
Different event listeners. 

1457
01:19:10,720 --> 01:19:14,040
The melt gives you access to. 
You would still have to do the 

1458
01:19:14,040 --> 01:19:16,160
same thing you can just do. 
Onclick. 

1459
01:19:16,160 --> 01:19:20,560
Like this and that just works. 
And if you wanted to, let's say 

1460
01:19:20,560 --> 01:19:24,560
I don't want to use, I don't 
want this onclick so I could use

1461
01:19:24,680 --> 01:19:29,440
the like onclick. 
I may know. 

1462
01:19:29,640 --> 01:19:36,040
Or like an empty one. 
Kind of all. 

1463
01:19:36,040 --> 01:19:38,480
Over the place because I know 
that like there's so many 

1464
01:19:38,480 --> 01:19:41,000
things, I could probably talk to
you for an entire day and still 

1465
01:19:41,000 --> 01:19:43,720
not talk about everything. 
But do you know the spelt 

1466
01:19:43,720 --> 01:19:49,280
component documentation? 
Where you do a comment. 

1467
01:19:49,280 --> 01:19:52,320
And then you do at component and
you can just start writing 

1468
01:19:53,160 --> 01:19:55,920
markdown. 
No. 

1469
01:19:57,000 --> 01:19:58,960
Oh. 
What do you mean? 

1470
01:19:59,160 --> 01:20:04,720
So it's it's documented like 
just very vaguely in the spelt 

1471
01:20:04,720 --> 01:20:07,240
documentation. 
But if you do a comment inside 

1472
01:20:07,240 --> 01:20:09,720
of a scout component, so you're 
in a scout component now go 

1473
01:20:09,720 --> 01:20:14,200
outside of your markup 
somewhere, make a comment. 

1474
01:20:16,520 --> 01:20:17,760
I think you might have to be 
out. 

1475
01:20:19,400 --> 01:20:20,560
I don't know if you can do it 
inside. 

1476
01:20:20,560 --> 01:20:23,560
The script tag. 
Do it like between the script 

1477
01:20:23,560 --> 01:20:26,720
and the start of your markup. 
This. 

1478
01:20:27,840 --> 01:20:29,600
Like an. 
HTML comment There you go at 

1479
01:20:29,600 --> 01:20:34,720
component. 
And then now you can just write.

1480
01:20:34,720 --> 01:20:37,600
Markdown and that will auto 
document your component for 

1481
01:20:37,600 --> 01:20:40,840
intellisense and then when you 
hover over it when you're using 

1482
01:20:40,840 --> 01:20:44,240
it you can see that anything 
that you write there. 

1483
01:20:46,240 --> 01:20:49,840
So now go to your tree inner. 
Component wherever that's used 

1484
01:20:49,840 --> 01:20:55,840
and hover over it. 
So. 

1485
01:20:56,120 --> 01:20:58,880
I was wondering. 
What I was getting at is that 

1486
01:20:58,880 --> 01:21:01,600
the spelt documentation, I wish 
that there was a way for me to 

1487
01:21:01,600 --> 01:21:05,080
write everything about a 
component for it to take that 

1488
01:21:05,080 --> 01:21:08,640
doc and then parse that into 
like actual like the 

1489
01:21:08,640 --> 01:21:11,640
documentation page somehow, 
yeah. 

1490
01:21:11,640 --> 01:21:13,640
Oh, that would be cool. 
I won't. 

1491
01:21:13,640 --> 01:21:15,880
I mean, maybe you could, you 
could just. 

1492
01:21:17,120 --> 01:21:18,080
I think you would you would 
need. 

1493
01:21:18,080 --> 01:21:21,200
To analyze, have a analyzer, a 
code analyzer, right? 

1494
01:21:21,200 --> 01:21:24,400
I guess like a build step. 
Is that? 

1495
01:21:24,400 --> 01:21:26,720
AST. 
Like something that will 

1496
01:21:26,720 --> 01:21:28,160
converse it. 
And look for. 

1497
01:21:28,520 --> 01:21:31,960
The AT component and then grab 
that and yeah, but in the in the

1498
01:21:31,960 --> 01:21:34,360
end of the day, that's. 
That's kind of time in the mix, 

1499
01:21:34,960 --> 01:21:35,960
but. 
That I would. 

1500
01:21:35,960 --> 01:21:38,440
Love it if that would happen, 
but this is what I'm using for 

1501
01:21:38,440 --> 01:21:40,280
my documentation and my 
components right now. 

1502
01:21:40,280 --> 01:21:41,960
OK, this is very. 
Really cool. 

1503
01:21:42,160 --> 01:21:43,640
This is really cool. 
I didn't know about this. 

1504
01:21:44,120 --> 01:21:46,760
OK, this is awesome. 
It's another thing like 

1505
01:21:47,080 --> 01:21:49,640
sometimes about components have 
all these amazing features and I

1506
01:21:49,640 --> 01:21:52,960
can't use them in Mouth because 
Mouth is not a component 

1507
01:21:52,960 --> 01:21:54,600
library, it's a builder library,
right? 

1508
01:21:54,960 --> 01:21:55,800
Yeah. 
So you. 

1509
01:21:55,800 --> 01:21:57,640
Don't. 
Actually have the components but

1510
01:21:57,640 --> 01:22:01,280
like country can use this, yeah.
But so I can complain. 

1511
01:22:01,280 --> 01:22:04,480
Because I can just do, yeah. 
Hunger can. 

1512
01:22:04,760 --> 01:22:07,160
What I can do is. 
Just like and you could use it 

1513
01:22:07,160 --> 01:22:09,920
in your. 
Documentation examples too, like

1514
01:22:10,240 --> 01:22:12,280
somehow. 
Yeah, one thing I want to. 

1515
01:22:12,280 --> 01:22:15,080
Do with mouth is like mouth's 
really advanced. 

1516
01:22:15,400 --> 01:22:18,880
It's a complex library. 
It's the qualms of it. 

1517
01:22:18,880 --> 01:22:21,040
Being flexible. 
And The thing is sometimes a lot

1518
01:22:21,040 --> 01:22:23,720
of people get lost in how do I 
create components with these and

1519
01:22:23,720 --> 01:22:26,200
it's not a good sign because 
it's the main thing you're going

1520
01:22:26,200 --> 01:22:28,560
to be doing. 
Like how do I make props 

1521
01:22:28,560 --> 01:22:30,880
reactive and etcetera. 
So I want to have some 

1522
01:22:30,880 --> 01:22:34,320
componentization examples. 
But The thing is, as I show 

1523
01:22:34,320 --> 01:22:38,280
like, things are going to change
a lot if I go and do like this 

1524
01:22:38,280 --> 01:22:41,840
agnostic thing, the docs are 
going to be rewritten in Astro, 

1525
01:22:41,840 --> 01:22:44,640
which would mean I'm going to 
rewrite a lot of ways of how I 

1526
01:22:44,640 --> 01:22:47,440
write docs. 
And then I can just do this API 

1527
01:22:47,440 --> 01:22:51,240
reference, this automatic stuff 
from scratch, which would be 

1528
01:22:51,240 --> 01:22:53,800
awesome. 
So that's the reason why I'm 

1529
01:22:53,800 --> 01:22:57,200
delaying a little bit the D docs
enhancement, because I'm not 

1530
01:22:57,200 --> 01:22:58,760
sure which way we're going to go
yet. 

1531
01:22:59,160 --> 01:23:04,080
I'm more focused on like making 
all the API stable, making tests

1532
01:23:04,080 --> 01:23:08,400
pass, fixing bugs so we can ship
one point O and then go for 

1533
01:23:08,400 --> 01:23:10,360
whatever is going to be Mel's 
future. 

1534
01:23:10,760 --> 01:23:13,960
So what are you using? 
For testing, we're using VI. 

1535
01:23:13,960 --> 01:23:16,400
Test with testing library. 
That's mostly it. 

1536
01:23:16,400 --> 01:23:18,800
We also have some accessibility 
testers we have with. 

1537
01:23:19,080 --> 01:23:23,600
There's AX extension for. 
Are you using Playwright? 

1538
01:23:24,520 --> 01:23:26,800
I'm not. 
I'm not sorry. 

1539
01:23:26,800 --> 01:23:28,400
What's? 
So the X. 

1540
01:23:28,400 --> 01:23:30,000
Extension works without 
playwright. 

1541
01:23:30,000 --> 01:23:31,560
I thought that was for 
playwright. 

1542
01:23:31,720 --> 01:23:34,440
No, there's an X. 
Jest extension which which you 

1543
01:23:34,440 --> 01:23:37,640
can use in bypass I think. 
That's what you're using. 

1544
01:23:38,520 --> 01:23:41,200
Oh. 
That it's really simple. 

1545
01:23:41,200 --> 01:23:43,040
Like if I go to, let's go to the
mount. 

1546
01:23:45,160 --> 01:23:47,720
Yeah, I'm, I'm. 
Using V chest and testing 

1547
01:23:47,720 --> 01:23:50,600
library, but I was going to add 
in playwright for more. 

1548
01:23:51,120 --> 01:23:54,000
They have an experimental 
component testing, but it 

1549
01:23:54,000 --> 01:23:56,720
doesn't work very well. 
Yeah, I've tried. 

1550
01:23:56,720 --> 01:23:58,160
I've tried that. 
With reddix file. 

1551
01:23:59,040 --> 01:24:01,560
Because I had some issues with 
testing library. 

1552
01:24:02,640 --> 01:24:05,240
But yeah, it. 
Had some it's not documented 

1553
01:24:05,520 --> 01:24:09,120
very well yet because it's still
in in beta. 

1554
01:24:09,600 --> 01:24:13,040
And yeah, I had some issues too,
but just that's good. 

1555
01:24:13,040 --> 01:24:15,400
Vitas is really good. 
Library. 

1556
01:24:16,040 --> 01:24:19,320
Yeah, one thing I really. 
Wanted to try is storybook with 

1557
01:24:19,440 --> 01:24:21,480
the new visual testing 
capability. 

1558
01:24:21,480 --> 01:24:24,880
So Storybook would be awesome 
because I could show how 

1559
01:24:24,880 --> 01:24:28,720
component is done, let people 
play around with drops, and if 

1560
01:24:28,720 --> 01:24:32,240
there's testing, like if I can 
integrate it with VI tests, I 

1561
01:24:32,240 --> 01:24:34,360
can. 
Well that already covers testing

1562
01:24:34,360 --> 01:24:37,480
and it would also cover visual 
testing because sometimes I'm 

1563
01:24:37,760 --> 01:24:39,920
writing something out, I'm 
trying to debug a test, but I 

1564
01:24:39,920 --> 01:24:42,760
can't see anything. 
So I have to copy test my code, 

1565
01:24:42,760 --> 01:24:45,280
put it on the spout environment 
and play around with it. 

1566
01:24:46,080 --> 01:24:47,200
I completely. 
Agree. 

1567
01:24:47,360 --> 01:24:50,040
I haven't gotten storybook 
testing working yet. 

1568
01:24:50,080 --> 01:24:52,880
And I know for visual testing I 
think you need to have like a 

1569
01:24:52,880 --> 01:24:55,760
chromatic key. 
So you need to be like bought 

1570
01:24:55,760 --> 01:24:59,320
into chromatic for storybook. 
Oh, I mean I, I. 

1571
01:24:59,320 --> 01:25:01,920
Know I received like I I've 
joined a wait list and I 

1572
01:25:01,920 --> 01:25:04,360
received an e-mail like hey, 
you've been invited and that's 

1573
01:25:04,360 --> 01:25:06,120
it. 
I don't I haven't tried it out 

1574
01:25:06,280 --> 01:25:07,520
though yet. 
Oh cool. 

1575
01:25:08,040 --> 01:25:11,880
If maybe that will go well. 
I do have storybook integrated 

1576
01:25:11,920 --> 01:25:15,240
so I have visual stuff, but my 
testing is not inside of 

1577
01:25:15,240 --> 01:25:16,760
storybook yet. 
I see. 

1578
01:25:16,760 --> 01:25:19,880
I see. 
But yeah, I want to we. 

1579
01:25:19,880 --> 01:25:23,640
Do have star book we just barely
use it like if you see. 

1580
01:25:25,000 --> 01:25:28,320
There's some more. 
Like stories, we have some, but 

1581
01:25:28,600 --> 01:25:30,400
yeah, we haven't used it 
extensively. 

1582
01:25:30,520 --> 01:25:33,360
My ID initially was to have like
a link in the docs that leads 

1583
01:25:33,360 --> 01:25:34,960
you to Starbucks so you can play
around. 

1584
01:25:35,920 --> 01:25:36,760
So yeah. 
Docs in. 

1585
01:25:36,760 --> 01:25:39,400
General and a little bit of 
testing. 

1586
01:25:39,400 --> 01:25:42,000
It's it's like my biggest pain 
point with Meld. 

1587
01:25:42,000 --> 01:25:45,160
I wish I could just wave a wind 
and like someone do it for me. 

1588
01:25:45,320 --> 01:25:47,120
Thank you. 
I. 

1589
01:25:47,120 --> 01:25:50,120
I wish I had another person to 
do the testing and stuff for me,

1590
01:25:50,120 --> 01:25:52,880
because my hardest thing is like
when you're building a component

1591
01:25:52,880 --> 01:25:56,800
library, what do you test? 
I can test that it functions, it

1592
01:25:56,800 --> 01:25:59,520
presses the button, it clicks, 
that happens. 

1593
01:25:59,520 --> 01:26:02,520
The links go to the links. 
But yeah, what? 

1594
01:26:02,520 --> 01:26:05,160
Else is there to. 
Test like what am I testing? 

1595
01:26:05,320 --> 01:26:07,640
Let's see this. 
Is the accord and this is 

1596
01:26:07,640 --> 01:26:12,360
toggle. 
Group iPad. 

1597
01:26:12,480 --> 01:26:14,040
Let's see what. 
We're passing for toggle group. 

1598
01:26:14,840 --> 01:26:16,200
Accessibility. 
Violations. 

1599
01:26:16,640 --> 01:26:22,600
Tabs does keyboard navigation 
selection, a lot of stuff. 

1600
01:26:22,600 --> 01:26:25,840
There's a lot of stuff. 
Accessibility stuff too, like 

1601
01:26:25,840 --> 01:26:29,040
I'm really lacking on. 
I need to step up my game with 

1602
01:26:29,040 --> 01:26:32,480
that, but time, man. 
Yeah, for sure. 

1603
01:26:32,520 --> 01:26:34,680
One thing I do. 
Normally is like whenever 

1604
01:26:34,680 --> 01:26:37,760
there's a new issue that's hey, 
something's not working in a 

1605
01:26:37,760 --> 01:26:41,840
component, I fix it and the same
PRI tried to create a test for 

1606
01:26:41,840 --> 01:26:45,960
it so doesn't happen again. 
That's a good way, I say to to. 

1607
01:26:47,080 --> 01:26:48,560
That's exactly. 
What happened to me? 

1608
01:26:50,480 --> 01:26:52,640
But the bad. 
I think this is this can only 

1609
01:26:52,640 --> 01:26:55,400
work if like your projects is 
used by many people. 

1610
01:26:55,400 --> 01:26:57,760
If you're using like an internal
project at work. 

1611
01:26:58,000 --> 01:27:02,040
Sometimes, like of course we 
catch bugs, but it's not as 

1612
01:27:02,040 --> 01:27:04,920
frequent. 
There should. 

1613
01:27:04,920 --> 01:27:08,160
Be some pre emptive testing for 
sure. 

1614
01:27:11,240 --> 01:27:14,320
Well, I hate to. 
Break up the the fun that y'all 

1615
01:27:14,320 --> 01:27:17,240
are having. 
But we've we've come upon it, 

1616
01:27:18,280 --> 01:27:19,920
no. 
I just. 

1617
01:27:20,080 --> 01:27:22,680
First of all, I want to say 
thanks for showing us around Mel

1618
01:27:22,680 --> 01:27:24,040
UI. 
That's really sweet. 

1619
01:27:24,040 --> 01:27:27,160
And then breaking down 
everything so you know Brittany 

1620
01:27:27,160 --> 01:27:30,680
can nerd out for all day long. 
Thank you for. 

1621
01:27:30,760 --> 01:27:32,440
Inviting me. 
It's always a blast. 

1622
01:27:32,920 --> 01:27:36,480
I'm I'm sorry. 
We interrupted your your day of 

1623
01:27:36,480 --> 01:27:39,400
sickness. 
It sounds like you're doing OK. 

1624
01:27:39,560 --> 01:27:40,280
Oh, yeah. 
But I, I. 

1625
01:27:40,320 --> 01:27:41,920
I. 
I thought I was going to have 

1626
01:27:41,920 --> 01:27:45,640
some coughing fit off talking 
too much but I'm I'm OK. 

1627
01:27:46,160 --> 01:27:48,480
Just a runny nose that's 
invisible to the camera. 

1628
01:27:48,480 --> 01:27:51,960
Thank God. 
I think you got so excited. 

1629
01:27:52,160 --> 01:27:54,480
Because of being able to talk 
about this stuff, that's why 

1630
01:27:54,520 --> 01:27:57,240
Exactly how you feel better. 
I love it, yeah. 

1631
01:27:57,320 --> 01:27:59,840
It's my medicine now. 
After this podcast, I'm just 

1632
01:27:59,840 --> 01:28:01,760
going to lie. 
And die from. 

1633
01:28:01,760 --> 01:28:04,880
Sickness. 
Well, as always. 

1634
01:28:05,440 --> 01:28:09,560
The GitHub repo is up from what 
we worked on and the links are 

1635
01:28:09,560 --> 01:28:15,560
out and you can check us every 
week at Code with Coding cat dot

1636
01:28:15,560 --> 01:28:20,120
dev where we bring on someone 
and we code for approximately 90

1637
01:28:20,120 --> 01:28:23,840
minutes and we create something 
by the end of it, which we did 

1638
01:28:23,840 --> 01:28:25,880
today. 
We have two buttons. 

1639
01:28:26,560 --> 01:28:28,840
Thanks for your work. 
Thank you. 

1640
01:28:29,240 --> 01:28:30,880
Thank. 
You doing some awesome stuff. 

1641
01:28:30,880 --> 01:28:33,240
Really appreciate it. 
Yeah, Thank you. 

1642
01:28:33,360 --> 01:28:34,920
I love. 
I love. 

1643
01:28:35,600 --> 01:28:39,680
Melt's contributors and people 
using it are are really, really 

1644
01:28:39,680 --> 01:28:44,160
thankful, and it's something I'm
really grateful for, yes. 

1645
01:28:44,840 --> 01:28:46,320
All right. 
Thank you so much. 

1646
01:28:46,320 --> 01:28:48,520
I usually have a post roll. 
Oh, OK, OK. 

1647
01:28:49,040 --> 01:28:50,960
We don't so. 
We let's. 

1648
01:28:51,240 --> 01:28:54,440
Do away, maybe you know. 
Maybe we should come up with 

1649
01:28:54,440 --> 01:28:57,880
something like on the podcast I 
listen to, they always come up 

1650
01:28:57,880 --> 01:28:59,800
with something. 
Bye. 

1651
01:29:00,880 --> 01:29:01,880
Yeah. 
Maybe we need? 

1652
01:29:01,920 --> 01:29:02,760
To I. 
Always say. 

1653
01:29:02,760 --> 01:29:06,440
Later and later nerve. 
What syntax? 

1654
01:29:06,600 --> 01:29:08,800
Says is later. 
I think they like. 

1655
01:29:08,800 --> 01:29:10,760
Creatively peace, they say. 
Peace. 

1656
01:29:12,760 --> 01:29:13,960
Need to. 
We need to do it like. 

1657
01:29:13,960 --> 01:29:15,880
A meow it's coding. 
That's what I was just going. 

1658
01:29:15,880 --> 01:29:18,080
To say we got to stick with our 
cat theme somehow though? 

1659
01:29:18,080 --> 01:29:19,160
Exactly. 
Oh. 

1660
01:29:19,520 --> 01:29:21,480
Yeah, call you later. 
I don't know. 

1661
01:29:21,960 --> 01:29:25,000
Yeah, that was a terrible. 
Meow, what was that? 

1662
01:29:25,800 --> 01:29:28,440
I don't know. 
I got enough room you can get a 

1663
01:29:28,440 --> 01:29:29,840
cat too. 
Yeah. 

1664
01:29:30,800 --> 01:29:31,760
All right. 
Pause. 

1665
01:29:31,760 --> 01:29:32,560
You later pause.
