Lifecycle (componentDidMount) смотреть онлайн
#07-React Fundamentals/ Lifecycle (componentDidMount)
Resources:
- Create React App:
https://github.com/facebook/create-react-app
- Node:
https://nodejs.org/
Transcript:
We have glass components have access to so-called lifecycle books which you can when you go with a particular
component mounds and mounds.
We see your props in many other situations.
Let's look into a method called component.
Then mount
it will be immediately invoked after the component has been rendered.
What do we do inside this method is completely up to us.
But for now let's create an additional way from the series which will hold only two elements for now.
And the first four will be Lycee Vikings.
The second one will be Game of Thrones.
Let's use a set time function which will take two arguments the first one is just the function and the
second one is the way after which your function will be invoked inside the function.
Let's use set state method which will take an object as its first argument.
So what sets they does it tells reac that this component and its children need to be rendered with the
updated state.
So let's take the series property of our state object and the scientists with our newly created series
write safe index yes go back to your page and the length of the series changed after two seconds.
Let's go back to that.
Yes.
And I want to show you a trick.
So inside your object if you're using the same names on your property you can actually lead this bit
of code and this will just take the series property and assign our newly created series array to it.
So save index G-S go back to your page refresh it and the length of the series should be two after two
seconds.
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Lifecycle (componentDidMount)» бесплатно и без регистрации, вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.