React JS Props and Prop Drilling | Learn ReactJS

preview_player
Показать описание

React JS props and prop drilling are must learn concepts for anyone interested in learning ReactJS. React components often need to share data which is passed as props. Prop drilling passes props from parent to child components.

🚀 This lesson is part of a Learn React tutorial series playlist:

React JS Props and Prop Drilling | Learn ReactJS

(00:00) Intro
(00:05) What are props?
(01:28) Passing props to a component
(02:47) Destructuring props
(03:43) defaultProps
(04:51) Moving state to the parent component
(10:17) Passing props to the Footer component
(12:44) Prop drilling to an Item List Component
(19:18) Prop drilling to a reusable Line Item component

🔗 ES7 React JS Snippets Extension for VS Code:

🔗 React Dev Tools Extension for Chrome:


📚 References:

✅ Follow Me:

Was this tutorial about Props and Prop Drilling in React JS helpful? If so, please share. Let me know your thoughts in the comments.

#react #props #prop-drilling
Рекомендации по теме
Комментарии
Автор

Dave, you're a priceless teacher. In my opinion, it's easy to understand the topic you're explaining because you talk about the tiny details as well, while many others think that beginners should understand the obvious things, which is often not the case. Thank you!

neatunet
Автор

Dave, I don't know how to thank you. I have been struggling with props. You just helped me get it in just a few minutes. Thank you!

iamtharunraj
Автор

I'm doing all tutorials you have Dave, very good lesons, i started with Redux when i find your video in the redux website. even already have studed React there´s always something to learn, thanks for sharing this axcelent material.

drivertoursexperience
Автор

This is one of most important lessons in React, that flow was no sense till now... Thank you a lot my friend, you r epic teacher!!

AIcompany
Автор

this video is a milestone for me i learned alot from it still long way to go to finish this thing already

zakariachajia
Автор

The way you teach is outstanding. Thank you so much!

fernandosalas
Автор

I had not learned of defaultProps before now. Thanks Dave!

Brightmdapps
Автор

Well explained and easy to understand. Thank you very much Dave

ogbonnajamessunday
Автор

Bro very well done, You did a excellent job. Really you can't imagine that i could never seen any tutorial same as yours in the past one and half year.

shakirraza
Автор

wherever whenever i can openly say that this is the best react course ever and this channel has the best content

bhuvaneshraj
Автор

Thanks for breaking this down. 1/2 way through I was hoping you would do that. On the <LineItem component you added in key={item.id} attribute which I understand why, does this mean we don't need it on the <li> now within the LineItem component itself. I removed it didn't appear to error. Great tutorial, thanks.

harag
Автор

Dear Dave
It is a wonderful course.
A clear, simple and complete presentation of React
I'm definitely getting a lot out of it.
Thank you very very much
🤓🤓🤓

ebesquin
Автор

You are a king. clean code, made everything simple. thank you

mi
Автор

Sweet. Never knew about default props!

toonice
Автор

Thank you, David Gray! You are a great teacher.

jamshidtashkent
Автор

I remember feeling like React is so messy and confusing at first, but that was because my code was unorganized and written really badly. I now find it so beautiful and quick to create things with, haha. Creating and managing components is addictive!

konstantinospascal
Автор

Your explanations are amazing. Really grateful! <3

sheilakerber
Автор

Great video! I'd love to know why you chose to use an icon with roles and aria labels rather than wrapping the icon in a <button> element? Wouldn't that solve all the accessibility issues and also keep the HTML semantic? Thanks again

toonice
Автор

Your explanation is great I really like the way you explain in great details.

vivekanand
Автор

Thank God! I came across with this treasure ❤

forshetrial