1
00:00:06,000 --> 00:00:13,900
Leet and react. 
Lit and react are two popular 

2
00:00:13,900 --> 00:00:18,800
libraries for building web 
components and web applications 

3
00:00:18,800 --> 00:00:22,300
while both have their strengths 
and weaknesses. 

4
00:00:22,300 --> 00:00:27,100
There are some key differences 
between them that may make one 

5
00:00:27,100 --> 00:00:31,600
more suitable for your project. 
Then the other one major 

6
00:00:31,600 --> 00:00:35,300
difference between leaked and 
react is the underlying 

7
00:00:35,300 --> 00:00:40,900
technology lit is built on top 
of web components, which is a 

8
00:00:40,900 --> 00:00:44,600
set of Of web standards that 
allows developers to Define 

9
00:00:44,600 --> 00:00:48,800
their own HTML elements. 
So it's actually web components.

10
00:00:48,900 --> 00:00:54,800
It's more, it's clothes to web 
components in contrast. 

11
00:00:55,000 --> 00:00:59,300
We Act is built on top of 
JavaScript and utilizes a 

12
00:00:59,300 --> 00:01:05,300
virtual Dom to efficiently 
update, the UI leads use of web 

13
00:01:05,300 --> 00:01:09,600
components means that it is 
highly interoperable with other 

14
00:01:09,600 --> 00:01:13,600
libraries and Frameworks. 
The to use the same standards as

15
00:01:13,600 --> 00:01:18,300
we said, the lead will be more 
compatible with web components 

16
00:01:19,000 --> 00:01:23,900
and walk out of the box, and 
this will make lit easier to 

17
00:01:23,900 --> 00:01:27,400
integrate with other parts of 
the applications or to use web 

18
00:01:27,400 --> 00:01:32,700
components created by others. 
Additionally, because lead is 

19
00:01:32,700 --> 00:01:37,100
built on web standards. 
It is likely to remain stable 

20
00:01:37,100 --> 00:01:40,800
and compatible with future 
versions of web Technologies. 

21
00:01:42,600 --> 00:01:46,400
Reacts use of the virtual Dome 
and its focus on JavaScript, 

22
00:01:46,400 --> 00:01:50,600
make it very performant and 
efficient, the virtual Dome 

23
00:01:50,600 --> 00:01:53,800
allows the ark to update the UI 
quickly. 

24
00:01:54,200 --> 00:01:58,500
And only update a parts of the 
page that have changed resulting

25
00:01:58,500 --> 00:02:04,200
in smoother, user experience. 
The ACT focus on JavaScript. 

26
00:02:04,200 --> 00:02:07,400
Also means that it has a large 
and active community of 

27
00:02:07,400 --> 00:02:11,800
developers, which can make it 
easier to find resources and get

28
00:02:12,000 --> 00:02:15,600
Plead any issues. 
Another key difference between 

29
00:02:15,600 --> 00:02:18,600
lead and react is their approach
to templates. 

30
00:02:19,500 --> 00:02:24,700
Lead users a syntax called 
template literals that allows 

31
00:02:24,700 --> 00:02:28,500
you to Define HTML directly in 
your JavaScript code. 

32
00:02:29,100 --> 00:02:33,100
This can make it easier to 
create and meant components and 

33
00:02:33,100 --> 00:02:37,600
can also make it easier to share
code between components react. 

34
00:02:37,600 --> 00:02:42,600
On the other hand, uses JS 6 
syntax that allows you to Define

35
00:02:42,600 --> 00:02:46,700
your HTML in a separate file, 
which some developers find 

36
00:02:46,800 --> 00:02:50,600
easier to work with. 
In terms of size lead is 

37
00:02:50,600 --> 00:02:54,500
generally smaller than react, 
which can make it easier to use 

38
00:02:54,500 --> 00:02:59,600
in smaller projects. 
Auto include in larger projects 

39
00:02:59,600 --> 00:03:02,400
without significantly, 
increasing the overall size of 

40
00:03:02,400 --> 00:03:09,500
the application, both lead and 
react have stone communities and

41
00:03:09,500 --> 00:03:13,900
active development. 
So we are likely to find good 

42
00:03:13,900 --> 00:03:16,300
resources and support for either
Library. 

43
00:03:16,800 --> 00:03:21,600
Ultimately the choice between 
lead and react will depend on 

44
00:03:21,600 --> 00:03:24,100
our specific project needs and 
requirements. 

45
00:03:24,600 --> 00:03:30,100
If we need high performance, And
efficient updates, or if you are

46
00:03:30,100 --> 00:03:34,200
already using a JavaScript heavy
application, then the ACT may be

47
00:03:34,200 --> 00:03:39,100
the better choice. 
If what we mainly need and are 

48
00:03:39,100 --> 00:03:43,900
concerned with is 
interoperability with other web,

49
00:03:43,900 --> 00:03:49,100
standards and Technologies, then
we may prefer the simpler syntax

50
00:03:49,600 --> 00:03:57,400
of defining our HTML and in this
case and Lead Maybe The better 

51
00:03:57,400 --> 00:04:01,200
choice. 
And so Soul. 

52
00:04:01,200 --> 00:04:06,400
It is comparable to the act in 
many ways and we can use lit of 

53
00:04:06,400 --> 00:04:13,900
course to build websites web 
apps, you eyes lit will even do 

54
00:04:13,900 --> 00:04:17,700
something that react can do. 
For example, it uses typescript 

55
00:04:17,700 --> 00:04:20,399
out of the box. 
It's not required, but it 

56
00:04:20,399 --> 00:04:24,300
encourages it's encouraged. 
Also in react, we can use 

57
00:04:24,300 --> 00:04:28,100
typescript, but we need to 
invest sometimes enabling it. 

58
00:04:29,100 --> 00:04:34,100
Lit, components are class-based 
and they encapsulate State and 

59
00:04:34,100 --> 00:04:38,700
behavior, just like react 
components, and both lead and 

60
00:04:38,700 --> 00:04:44,000
reactor component-based. 
And we can create more complex, 

61
00:04:44,000 --> 00:04:48,500
you Eyes by composing our 
components together. 

62
00:04:50,400 --> 00:04:55,700
When the components State 
changed and dif will reflect 

63
00:04:56,000 --> 00:05:04,100
this exact state. 
Because of the emphasis toward 

64
00:05:04,100 --> 00:05:09,200
leaning and the bothers that 
already offers components, then 

65
00:05:09,200 --> 00:05:13,300
lit is really tiny liable. 
It's about 5, KB. 

66
00:05:13,300 --> 00:05:15,500
Only when minified and 
compressed. 

67
00:05:16,400 --> 00:05:19,900
So if we are worried about page 
load and interested in poser 

68
00:05:19,900 --> 00:05:22,900
feature, then late might be the 
better choice. 

69
00:05:22,900 --> 00:05:25,100
Little, it's also closer to the 
browser. 

70
00:05:29,400 --> 00:05:33,400
A lot of heavy lifting is done 
in lead by - voiceover API 

71
00:05:33,400 --> 00:05:36,800
instead of by additional 
framework boilerplate. 

72
00:05:36,800 --> 00:05:42,700
That we'd also be downloaded. 
But they are both 

73
00:05:42,700 --> 00:05:49,000
component-based as we said, Lead
components are class-based. 

74
00:05:50,200 --> 00:05:54,400
So if class syntax is not our 
thing, then it's less. 

75
00:05:54,800 --> 00:05:59,900
The thing that we that we want, 
but lit uses typescript out of 

76
00:05:59,900 --> 00:06:05,300
the box, as we said web 
components in general. 

77
00:06:05,300 --> 00:06:09,100
We didn't describe our set of 
native browser apis that let us 

78
00:06:09,100 --> 00:06:13,600
create our own HTML elements and
those elements can do whatever 

79
00:06:13,600 --> 00:06:17,900
we want them to do lead. 
Library that wraps around the 

80
00:06:17,900 --> 00:06:20,900
web components and make them 
easier to work with instead of 

81
00:06:20,900 --> 00:06:26,200
setting up web components using 
the native API directly. 

82
00:06:27,500 --> 00:06:30,900
So this was a brief comparison 
between the lip framework for 

83
00:06:30,900 --> 00:06:34,200
building both web components and
websites and react.

