All language subtitles for 020 Organizing Component Files_en

af Afrikaans
sq Albanian
am Amharic
ar Arabic Download
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bn Bengali
bs Bosnian
bg Bulgarian
ca Catalan
ceb Cebuano
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
tl Filipino
fi Finnish
fr French
fy Frisian
gl Galician
ka Georgian
de German
el Greek
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
km Khmer
ko Korean
ku Kurdish (Kurmanji)
ky Kyrgyz
lo Lao
la Latin
lv Latvian
lt Lithuanian
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mn Mongolian
my Myanmar (Burmese)
ne Nepali
no Norwegian
ps Pashto
fa Persian
pl Polish
pt Portuguese
pa Punjabi
ro Romanian
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
st Sesotho
sn Shona
sd Sindhi
si Sinhala
sk Slovak
sl Slovenian
so Somali
es Spanish
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
te Telugu
th Thai
tr Turkish
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
or Odia (Oriya)
rw Kinyarwanda
tk Turkmen
tt Tatar
ug Uyghur
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:02,033 --> 00:00:04,000 Maximilian: So, now, in the last lecture we learned 2 00:00:04,000 --> 00:00:06,900 about JSX and how it looks like under the hood, 3 00:00:06,900 --> 00:00:10,500 and why we therefore could add all these React imports 4 00:00:10,500 --> 00:00:14,400 to all these files, which hold JSX code. 5 00:00:14,400 --> 00:00:17,833 Speaking of the files, let's talk about organizing them. 6 00:00:17,833 --> 00:00:19,966 Here, we only got a couple of components 7 00:00:19,966 --> 00:00:22,966 and therefore we can store them like this, 8 00:00:22,966 --> 00:00:25,666 but as your project grows and as you have more 9 00:00:25,666 --> 00:00:27,933 and more components you might want 10 00:00:27,933 --> 00:00:30,233 to organize them into sub folders 11 00:00:30,233 --> 00:00:34,566 and not just throw them all into one components folder. 12 00:00:34,566 --> 00:00:35,966 And, indeed, that is something 13 00:00:35,966 --> 00:00:38,000 we can already get started with. 14 00:00:38,000 --> 00:00:43,200 Here, we could argue that we have some general UI components 15 00:00:43,200 --> 00:00:43,266 Here, we could argue that we have some general UI components 16 00:00:43,266 --> 00:00:45,433 some general user interface elements, 17 00:00:45,433 --> 00:00:48,800 which are not tied to a specific feature of the app. 18 00:00:48,800 --> 00:00:51,933 And then, we got some features specific components, 19 00:00:51,933 --> 00:00:52,200 And then, we got some features specific components, 20 00:00:52,200 --> 00:00:54,200 like these components, which are dealing 21 00:00:54,200 --> 00:00:58,866 with rendering expenses and expense data. 22 00:00:58,866 --> 00:01:01,500 And, therefore, in the components sub folder, 23 00:01:01,500 --> 00:01:06,866 we could create an Expenses sub folder, 24 00:01:06,866 --> 00:01:07,000 we could create an Expenses sub folder, 25 00:01:07,000 --> 00:01:12,600 and next to that a UI sub folder 26 00:01:12,600 --> 00:01:17,100 for general user interface elements. 27 00:01:17,100 --> 00:01:18,900 And we could move the card files 28 00:01:18,900 --> 00:01:20,833 into the UI folder and the Expenses, ExpenseItem, 29 00:01:20,833 --> 00:01:23,633 into the UI folder and the Expenses, ExpenseItem, 30 00:01:23,633 --> 00:01:28,100 and ExpenseDate files into the Expenses folder. 31 00:01:28,100 --> 00:01:29,600 Now, you just want to make sure 32 00:01:29,600 --> 00:01:33,533 that you update all your imports like in Expenses.js, 33 00:01:33,533 --> 00:01:35,700 where we import card, we now, first of all, 34 00:01:35,700 --> 00:01:36,933 where we import card, we now, first of all, 35 00:01:36,933 --> 00:01:41,200 need to go up one level with two dots and then a slash 36 00:01:41,200 --> 00:01:43,400 and then dive into the UI folder 37 00:01:43,400 --> 00:01:47,333 and import card, the card file. 38 00:01:47,333 --> 00:01:50,033 We need to go up one level because Expenses is now 39 00:01:50,033 --> 00:01:52,300 in the Expenses folder, and we need to get 40 00:01:52,300 --> 00:01:55,933 out of that folder into the next folder above it 41 00:01:55,933 --> 00:01:56,000 out of that folder into the next folder above it 42 00:01:56,000 --> 00:02:00,133 to then dive into the UI folder, which is a sibling folder 43 00:02:00,133 --> 00:02:04,166 to Expenses, to the Expenses folder, I mean. 44 00:02:04,166 --> 00:02:06,333 We don't need to update the other imports 45 00:02:06,333 --> 00:02:08,032 because these files are still in 46 00:02:08,032 --> 00:02:11,666 the same folder as Expenses.js. 47 00:02:11,666 --> 00:02:14,066 For ExpenseItem, we also need to update 48 00:02:14,066 --> 00:02:17,033 the card import though, go up one level, 49 00:02:17,033 --> 00:02:21,266 dive into the UI folder and then import card. 50 00:02:21,266 --> 00:02:25,066 And in App.js, we no longer import Expenses 51 00:02:25,066 --> 00:02:26,766 from components' Expenses, instead we dive into components 52 00:02:26,766 --> 00:02:29,300 from components' Expenses, instead we dive into components 53 00:02:29,300 --> 00:02:31,200 then into the Expenses folder 54 00:02:31,200 --> 00:02:33,300 and there it's the Expenses file, 55 00:02:33,300 --> 00:02:35,533 which you want to import from. 56 00:02:35,533 --> 00:02:37,366 So, now, we can adjust these imports. 57 00:02:37,366 --> 00:02:43,300 And if you did that, this again, all works if you load it. 58 00:02:43,300 --> 00:02:46,200 And we're really just doing this to organize our files, 59 00:02:46,200 --> 00:02:48,300 and to keep our components organized, 60 00:02:48,300 --> 00:02:52,333 and to make sure that they're not all in one big folder. 61 00:02:52,333 --> 00:02:55,300 Ultimately, it's up to you how you want to organize them. 62 00:02:55,300 --> 00:02:57,166 And, of course you, should just organize them, 63 00:02:57,166 --> 00:03:00,333 such that you and any team members you might be working 64 00:03:00,333 --> 00:03:03,433 with are comfortable working with these files. 65 00:03:03,433 --> 00:03:05,900 That's the most important thing which matters. 5395

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.