Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:02,040 --> 00:00:04,080
Now, something we'll not see
2
00:00:04,080 --> 00:00:05,550
a lot in this course
3
00:00:05,550 --> 00:00:08,100
is that we'll reach out to the DOM
4
00:00:08,100 --> 00:00:11,460
and select elements in the DOM manually
5
00:00:11,460 --> 00:00:12,990
in JavaScript code
6
00:00:12,990 --> 00:00:15,480
to then read or change them.
7
00:00:15,480 --> 00:00:18,000
Now, being able to reach out
8
00:00:18,000 --> 00:00:19,440
to the loaded website
9
00:00:19,440 --> 00:00:22,080
and read and manipulate it at runtime
10
00:00:22,080 --> 00:00:24,870
is of course a strength of JavaScript,
11
00:00:24,870 --> 00:00:28,440
but it is also something we won't do when using React,
12
00:00:28,440 --> 00:00:30,450
because React will do it for us,
13
00:00:30,450 --> 00:00:33,810
because we write React code in that declarative way
14
00:00:33,810 --> 00:00:36,600
as you learned in the first course section.
15
00:00:36,600 --> 00:00:40,410
So selecting elements, for example with querySelector
16
00:00:40,410 --> 00:00:42,900
to then remove them from the screen,
17
00:00:42,900 --> 00:00:44,580
for example, like this,
18
00:00:44,580 --> 00:00:48,660
is not something we'll do a lot or at all in this course.
19
00:00:48,660 --> 00:00:50,823
Instead, we'll use React for that.
1406
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.