All language subtitles for 016 Adding Dummy Data & More Content_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

Now that we got

our first basic pages in place

before we add more route features,

let's add some data, some dummy data

which we can output for now

and I'll start

in the all quotes page.

In there I wanna output a list of quotes

and a little bit later

in this section,

we're going to fetch those quotes

from a server

for the moment let's work with

some dummy quotes here,

some dummy data

which I just defined here

in a constant.

It should be an array of quotes

and every quote should be an object

with an ID.

Any ID you want like Q1.

Then we also want to have

an author field

and here I'll just use my name

and a text field with,

well the actual text of the quote,

for example, learning React is fun

and then I'll copy that

and create the number code

with a different ID

and a different author,

because that's me with my full name

and the quote is,

learning React is great.

Now that's just some dummy data here.

Now the goal is to output that data

and that starting project,

which I've provided to you

does have a quote list component.

This quote list component

in the end just renders

an unordered list here

and that unordered list

renders a bunch of quote items

and a quote item looks like this.

Now they offer in all quotes.

I wanna output that quote list

and hence we should first of all

import this quote list component

from going up one level,

diving into components,

quotes, quote list

and then here in all quotes,

instead of returning this H one tag,

I'll return quote list

and now this quote list component

in the end wants a quotes prop,

because I'm accessing that quotes prop

inside of quote list

and hence here I'll set

quotes equal to my dummy quotes here.

If I do that and save this,

then on the all quotes page

we should see these two quotes

and we have these quote items

with these buttons,

which at the moment don't do anything.

If we click them, nothing happens

but that is a first step.

Now, if I do click

such a item link here,

if I do click view full screen,

I of course wanna load

the quote detail page for that quote

and we'll implement that

in the next step

before we do that

let's go to add a quote

and also work on this page.

This page should display a form,

a form which allows us

to add a new quote later

and for this I did prepare

this quote form component

in the components folder.

It is a component

which renders a form

and which also then has this

submit form handler function

which doesn't do anything

except for trigger a function

which it expects to get

on the on add quote prop

to which it then passes

this entered data.

So in the component

where we use quote form

we wanna pass a function

to the quote form component

on that on ad quote prop,

which expects this data

hence here in the new quote page

we wanna use that quote form component.

So we can import quote form

from components, quotes, quote form

and then output this year instead,

the quote form

and now here, we need to pass this

on add quote prop

which I just talked about

which we expect

instead of the quote form component

and as a value,

we wanna pass a function,

a function which

expects this quote data.

So here in the

new quote page component

I'll add a new function,

the add quote handler function

for example, where I expect

to get some quotes data

and where we then later

we'll sent this to a server

for the moment

I'll just console lock

the quote data here

and then it's this function,

a pointer at this function

which we passed to quote form.

With that if we save this

we have this form here

on this new quote page.

So as that this page

and this demo project

is slowly taking shape.

Now let's make sure

that clicking on the view full screen.

So on such a quote item

on this link here,

that clicking on this link

actually loads this quote detail page

and definitely try

implementing this on your own.

Try implementing a link here

which loads the detail page

for the different quotes.

So which respects

the different quote IDs in the URL.

We're going to implement this together

and finish this quote detail page

at least the first draft

in the next lecture.

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