Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranรฎ)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
In this course section,
we are going to learn
how we may build components in React.
Well, wait a second!
Isn't that something we've learned
in-depth until now already?
Well we did, but there is an alternative way
of building components.
Besides building components as functions,
which is what we did up to this point,
you can also define components with classes.
You can build Class-based Components.
But I get one important note, right away,
before you feel overwhelmed.
This is 100% optional,
and in most modern React projects,
you are probably not going to use this approach.
You can therefore skip this section,
but I wanna emphasize that you will see a lot
of Class-based Components out there, in the wild,
in third-party libraries or in projects
you might be working on, because traditionally,
not too long ago,
you had to use Class-based Components in certain cases.
This is no longer the case,
but I will explain all about that throughout this section.
I will explain what exactly Class-based Components are
and why they exist.
We will learn how we can build Class-based Components
and how we can work with Class-based Components,
and, we're then also going to have a look at
Error Boundaries, and at least this is something
you should at least take a mental note to come back to,
because Error Boundaries, right now,
require Class-based Components to be built.
That being said, you will not build
a lot of Error Boundaries.
But still, this module holds important information
about React's past, about an alternative way
of building components,
and most importantly of course,
why that way exists and how it works.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.