REACT JS TUTORIAL #4 - State vs Props & Application Data

REACT JS TUTORIAL #4 - State vs Props & Application Data

LearnCode.academy

8 лет назад

460,720 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Kebo
Kebo - 22.09.2022 17:33

You really helped clear up my confusion and gave me a much better understanding of how props and states work. Thanks so much!

Ответить
NC Supply
NC Supply - 03.03.2022 13:37

my teachers lesson was nearly 2h and you explained everything much better in 10min.. its nuts, ty mate! im new to React and things can be so confusing!

Ответить
Raj Banna Sa
Raj Banna Sa - 24.01.2022 14:52

Thank you so much sir ❤️

Ответить
Britney H
Britney H - 02.08.2021 14:47

This was so helpful. Thank you!!!!

Ответить
Raymund Paul Fontanilla
Raymund Paul Fontanilla - 31.05.2021 03:42

Thanks for the super duper detailed tutorial, some tutorials has no demo console with green flash lights, compare to others that's has a detaield tutorial and for your tutorial is super duper detailed. and I'm shocked that's possible to do the console green flash lights when the value is change on the setState() method

Ответить
Dale the Pale Male
Dale the Pale Male - 30.12.2020 04:11

Helpful

Ответить
Hassan AMZ
Hassan AMZ - 13.12.2020 05:10

It's kinda irrelevant now

Ответить
Elias Prado
Elias Prado - 17.11.2020 19:04

If you are confusing about props vs state just make this question: Does x change? If not, x should not be part of state. Or/else it should be a prop.

Ответить
Elias Prado
Elias Prado - 17.11.2020 19:02

This is a great tutorial, states and props are very confusing.

Ответить
박창대
박창대 - 27.09.2020 09:57

Thank you so so much for your react lectures. Your videos are even better in that they are divided into a proper amount of time and a specific sub-topic.

Ответить
prod.KashKari
prod.KashKari - 06.06.2020 17:17

Just learn swiftUI guys

Ответить
ghofrane rhimi
ghofrane rhimi - 05.06.2020 11:42

Amazing ! Thank you

Ответить
Inspiring Positive Quotes
Inspiring Positive Quotes - 13.05.2020 01:53

Great

Ответить
Sushant Kshirsagar
Sushant Kshirsagar - 19.04.2020 22:01

is setTimout an async call ?

Ответить
Mahkameh fallah
Mahkameh fallah - 27.01.2020 00:56

Thanks it was Great !

Ответить
Nuno Lemos
Nuno Lemos - 02.01.2020 01:13

Its helping me a lot, this great series of tutorials.
Thank you and congratulations.

Ответить
Dewale
Dewale - 15.05.2019 19:56

props and state it somehow

Ответить
Bilal
Bilal - 25.04.2019 02:34

I have taken multiple REACT trainings (paid and unpaid) I believe, this video series is one of the best freely available. Very precise, simple and slow paced.

Ответить
Vickie Kangare
Vickie Kangare - 16.04.2019 15:12

nice

Ответить
david alexander
david alexander - 24.03.2019 03:01

if a component's prop depends from its parent state and this state changes but has the same value, the best practice it's to check with lifecycle methods in the child component to avoid rerender, right?

Ответить
Snorre Aas
Snorre Aas - 12.03.2019 23:15

This is actually the only video on YT that explained state and props in a way that I now actually understand the concept! Tyvm man! :)

Ответить
Jordan Cahill
Jordan Cahill - 03.03.2019 02:08

The title variable (this.state.title) was passed from the Layout components state object to the Header component. This title variable though seems that it is a variable that does not affect only the Layout component, since it was passed to Header and influenced the Header component by becoming a Header prop. I thought that state variables should only affect the component that the state variable belongs to? Would this be bad state management?

Ответить
Maq Said
Maq Said - 08.02.2019 04:38

using this.state or this.props, can anyone explain how the concept of "this" works in React, sometimes it is confusing.

Ответить
MichaelMartire
MichaelMartire - 16.01.2019 23:27

Using title for multiple instances is confusing for people learning. You need to separate them out so boundaries/outlines are clear.

Ответить
Jesse Ω
Jesse Ω - 06.01.2019 08:51

You can place state inside several places my brother, For all async state: componentDidMount, componentWillReceiveProps, the constructor and as a class property. The non-async is safe to place in componentWillMount. Thank you for this video

Ответить
Rayscafe
Rayscafe - 19.12.2018 16:15

Don't have to use Constructor() anymore right?

Ответить
KN1GHT
KN1GHT - 12.12.2018 22:18

take an object and store it in state and explain, having 1 property is super easy

Ответить
Waqar Orakzai
Waqar Orakzai - 30.11.2018 13:16

Hiccup ?? How to train your Dragon??

Ответить
rang
rang - 29.09.2018 18:27

it's pretty like java! thanks for uploading this video!

Ответить
Puneet Sharma
Puneet Sharma - 28.09.2018 13:10

Please use better resolution next time. Its hard to follow when you flip between different JS files. It hard to see which file you jumped to/from ?

Ответить
delt dev
delt dev - 24.09.2018 11:34

the virtualDOM is outside the browser, so where is it ? in memory ?

Ответить
John Morris
John Morris - 24.08.2018 17:01

I heard an instructor say that when you are passing data in react it mutating from the parent DOM element. Is that correct or not?

Ответить
Ambar Prajapati
Ambar Prajapati - 05.07.2018 14:36

Excellent Explanation. All Videos are great. Keep up. Thanks.

Ответить
Pranaga
Pranaga - 03.07.2018 07:20

thank you for explaining

Ответить
Lenin Ramos
Lenin Ramos - 31.05.2018 17:25

Wow you are a real teacher....

Ответить
Carlos Alberto Brasil
Carlos Alberto Brasil - 29.05.2018 22:41

could I handle events with props? to another components

Ответить
Krishna Reddy Ranabothu
Krishna Reddy Ranabothu - 24.05.2018 04:47

Excellent, Explanation

Ответить
Pete Fullen
Pete Fullen - 19.05.2018 02:13

I really appreciate the work you put into these videos. They are very well explained and extremely helpful. Great job!!!!

Ответить
Emma
Emma - 31.03.2018 03:40

Great video.

Ответить
Sundus Kareem
Sundus Kareem - 19.03.2018 17:37

Thanks that was very usefull

Ответить
Charl van der Merwe
Charl van der Merwe - 14.03.2018 09:46

I have a question regarding the git repo. It is evident that it has come along way from where the video started. But can someone assist me in understanding why the "It's Working" bit is inside the client.min.js? And how do I get it to be the version being used during the course? I see 4 branches so assuming that master might not be the correct one to use? Advice anyone?

Ответить
Gopalakrishna Pippara
Gopalakrishna Pippara - 24.02.2018 16:33

thanks

Ответить
Obsidian Sirius Blackheart
Obsidian Sirius Blackheart - 19.01.2018 18:52

QUESTION: If I leave all that state stuff in and try to do the prop injection to Header.js and console log from header, the console repeatedly shows the Header.js console log. Is this because of something weird happening when I call this.setState()???

Ответить
thisisthejay
thisisthejay - 07.01.2018 23:51

This is a great explanation of why React is so powerful. I didn't get it previously. Thank you!

Ответить
Viraat Chandra
Viraat Chandra - 04.01.2018 21:01

Liked. Logged Out. Liked from my other account.

Ответить
Shreya
Shreya - 07.12.2017 19:28

This guy is good. Thanks

Ответить