All language subtitles for 009 Providing the Store_en

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
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
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranรฎ)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

To provide our Redux store

to the React app,

we typically go into this index JS file,

where we rendered the entire app.

So to the highest level we can go,

in our react application,

to the top of our component tree,

where we render this root component.

And now here,

we can import from react Redux.

So not from Redux,

but from react Redux.

And what we import here,

is now the provider component.

This is actually a component.

And now we wrap,

all our root component, with provider,

a little bit,

as we used our own context provider components.

If you recall that

from earlier in the course.

We also build our own context, provider components,

using react context,

and we wrapped our app

or a part of our app

with that as well.

We're basically doing the same here,

and you don't have to use provider

on this highest component level.

You could also wrap nested components with provider,

but only wrapped components

and their child components,

and the child components

of the child components,

and so on.

Only those components will have access

to Redux thereafter.

And if the vast majority

of your components need access

to the store,

if maybe your entire app,

needs access to the store,

you should typically provide,

on this highest level.

Now just by wrapping Provider around app,

we're not telling react Redux

and react therefore,

which store we wanna provide.

Sure. We only have one store,

but that's stored in this index JS file,

react Redux of course doesn't know

that data file holds our store.

Instead we have

to import our store from,

store index in this case.

So that store,

which we're exporting in there,

we're importing this

into index JS,

and on this provider,

which we import from react Redux.

We have a store prop,

which we have to set.

And this one's a value,

a value which is our Redux store.

So this store,

which we're importing here,

we're setting this as a value,

for the store prop

on this provider component.

And that now provides our Redux store,

cue this react app.

Now on its own,

that doesn't do much.

Now to store is provided,

but that doesn't change anything

at the moment.

But now our components in this app,

the app component,

and any other child components,

can tap into that store.

They can get data out of the store.

They can set up a subscription

to that data to be precise,

and they also can dispatch actions.

And that's what we're therefore going to do next.

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