Full React Tutorial #11 - Props

Поделиться
HTML-код
  • Опубликовано: 3 янв 2021
  • Hey gang, in this React tutorial we'll learn about props - which is a way to pass data from parent components into child components.
    🐱‍💻 🐱‍💻 Course Files:
    + github.com/iamshaunjp/Complet...
    🐱‍👤🐱‍👤 JOIN THE GANG -
    / @netninja
    🐱‍💻 🐱‍💻 My Udemy Courses:
    + Modern JavaScript - www.thenetninja.co.uk/udemy/m...
    + Vue JS & Firebase - www.thenetninja.co.uk/udemy/v...
    + D3.js & Firebase - www.thenetninja.co.uk/udemy/d...
    🐱‍💻 🐱‍💻 Helpful Links:
    + HTML & CSS Course - • HTML & CSS Crash Cours...
    + Modern JavaScript course - • Modern JavaScript Tuto...
    + Get VS Code - code.visualstudio.com/
    🐱‍💻 🐱‍💻 Social Links:
    Facebook - / thenetninjauk
    Twitter - / thenetninjauk
    Instagram - / thenetninja

Комментарии • 214

  • @Investigamer
    @Investigamer Год назад +89

    Without any doubt the most straightforward, no nonsense React tutorial series on RUclips, by a wide margin. Thanks buddy

    • @NetNinja
      @NetNinja  Год назад +6

      No problem :) thanks for the kind words!

    • @Investigamer
      @Investigamer Год назад +2

      @@NetNinja Does your channel have any other react tutorials? Would love to see more, maybe some tutorials on getting components to communicate with each other?

    • @callumclayton3685
      @callumclayton3685 Год назад +2

      Im late to this but thankyou! Most logical approach ive found online!

    • @thegodfatherse7enran
      @thegodfatherse7enran 9 месяцев назад +1

      * Best React tutorial on the internet.

    • @CrowMacnas
      @CrowMacnas 6 месяцев назад

      Agreed. This has shattered some mental barriers for me that I've been struggling with for years. 🙌

  • @beinyourguard
    @beinyourguard 3 года назад +100

    The thing I'm loving about this tutorial is that they are short and straight to the point. No need for like 20 minutes of explaining

  • @viviannwangrydh1187
    @viviannwangrydh1187 3 года назад +156

    I really want to say:"Sir. you have the best react courses on RUclips. Thank you." ^_^ I am your big fan.

    • @NetNinja
      @NetNinja  3 года назад +6

      Thank you so much :)

    • @viviannwangrydh1187
      @viviannwangrydh1187 3 года назад +11

      @@NetNinja Right now I understand how other Star chasers feel after they got replay from their idol 😆 😆😁 Thank you sir 😁

    • @unknownman1
      @unknownman1 3 года назад +2

      @@viviannwangrydh1187 why your badge is better than mine?

    • @viviannwangrydh1187
      @viviannwangrydh1187 3 года назад +1

      @@unknownman1 sorry i do not know why 😂

    • @googleaccount7252
      @googleaccount7252 Год назад +1

      @@viviannwangrydh1187 you still doing React?

  • @rangepick
    @rangepick 2 года назад +20

    I've never seen someone explain this in such a simple way as you did! Kudos for this!

  • @mircast0
    @mircast0 3 года назад +15

    "And third: It allows me to show you how to use props." 😂👍

    • @domieSinday
      @domieSinday 3 года назад

      now, it does make sense LOL

  • @berkyilmaz2941
    @berkyilmaz2941 3 года назад +26

    I take another react courses but no one tell the logic behind the action. You are great teacher sir. I understand completely the logics behind the actions. You are telling a lot of thing within the short time. Im glad for your efforts

  • @wahome_
    @wahome_ 2 года назад +6

    I cant believe im actually getting React now . Thanks man

  • @dejuanclark4163
    @dejuanclark4163 3 года назад +16

    even though I am very comfortable with React, I still love watching Shaun explain it.

  • @JBOnaWalk
    @JBOnaWalk 20 дней назад

    One video and I'm subbed. I'm in a React class and they had a very convoluted way of explaining all this. THANK you so much for the video. Literally exactly the kind of explanation I needed.

  • @shinebayar
    @shinebayar 3 года назад +18

    I'm enjoying this playlist a lot! Most up to date and straightforward, thank you!

  • @tsunamiisurferr1794
    @tsunamiisurferr1794 3 года назад +13

    I was referred to your channel and it has assisted me when i felt completely lost! The last 3 videos have completely relieved my stress and that was due to you breaking it down to small digestible parts . THANK YOU 👨‍💻

    • @NetNinja
      @NetNinja  3 года назад +6

      Glad I could help! :D

  • @amrishpandey2105
    @amrishpandey2105 2 года назад +3

    this course is simple , short , straight to the point and cristal clear as day. i must say that it helped me clear the core concepts of react in a very beginner friendly way. best beginner react course out there, that too its free.

  • @piotrzacharski8097
    @piotrzacharski8097 2 года назад +1

    Started attending a course in React in Poland. But having watched your explanation of props, I finally understand them. Thanks a lot! You're the BEST!

  • @jadeymeow
    @jadeymeow 2 года назад +1

    You are the BEST!! I have been stuck with this for over a week and no vids made sense to me. I'm using props like 2nd nature now, thank you for the extremely clear explanation

  • @rizalsofyans
    @rizalsofyans 3 года назад +2

    finally i understand how props works🥺👍

  • @ivanbarta2821
    @ivanbarta2821 3 года назад +4

    Very well structured and simple explanation of something you can easily get lost in, thanks!

  • @stevesajeev6477
    @stevesajeev6477 3 года назад +4

    Shaun, Thank you so much for this awesome video. Loved it. It helped a lot, as it is very easy to follow.
    You explain everything deeply but fast. Making it really easy to learn.

  • @danieladjeijunior2087
    @danieladjeijunior2087 10 месяцев назад

    You have the best playList so far ...
    Keep it up

  • @danfrith726
    @danfrith726 Год назад

    the last deconstructing part just made my components so much cleaner, glad i learnt that

  • @yuriaugusto1084
    @yuriaugusto1084 2 года назад

    This is what i call teach! explaining and telling how and why we should use things, your channel is pure gold, thanks for sharing with us.

  • @haze4828
    @haze4828 2 года назад

    You just saved me from hours and hours of googling and research trying to figure this out in 9 minutes!! Well earned sub, sir.

  • @Dafty23
    @Dafty23 Год назад +1

    This is exactly what I was looking for, thank you very much. Going to watch many more of your videos to learn react.

  • @rjc4200
    @rjc4200 2 года назад +1

    Going through this series just to bush up my React skills. Again a nice one , followed you in Github as well Shaun. Keep it up !! :)

  • @mohboutarfa3761
    @mohboutarfa3761 2 года назад

    simple, straight to point , quick , i love you

  • @manee427
    @manee427 3 года назад +1

    It could not be more Perfect.Thanks a lot

  • @blankslate6393
    @blankslate6393 2 года назад

    Lucid and memorable. Excellent educator as ever.

  • @kidsfuncreator
    @kidsfuncreator Год назад

    I really really love your videos. You always straight forward to point

  • @chikasole
    @chikasole 6 месяцев назад

    For real this helped me understand props way better than any other tutorial ♥

  • @billpapas3054
    @billpapas3054 3 года назад +1

    Its really So REALLY THE BEST tutorial for REACT out there!!! Just WELL DONE mister!!! And its also free!!! Just wow!!

  • @manmaaze
    @manmaaze 3 года назад +4

    I was waiting for this soo long

  • @jonathanmoermans3388
    @jonathanmoermans3388 Год назад

    As a React beginner this cleared up a lot of things for me! Thanks!

  • @Mrwolfgd
    @Mrwolfgd 2 месяца назад

    I’ll be honest, I tried several times learning to code, your guide series helped me finally acquire the logic I was lacking, it wasn’t this series alone, it took me some thinking and analyzing prior to that but this series definitely made it 90% easier so thank you very much! I appreciate it more than you know!

    • @NetNinja
      @NetNinja  2 месяца назад

      That's great to hear :) glad it helped. Thanks for watching Mrwolf!

    • @Mrwolfgd
      @Mrwolfgd 2 месяца назад

      @@NetNinja thanks a lot bro, can’t thank you enough!
      Edit: just a sec I just remembered I can actually pay you back

    • @Mrwolfgd
      @Mrwolfgd 2 месяца назад

      It may not be much but honest work (jk lol thanks again, it’s really not taken for granted)

  • @corbinslaymaker3346
    @corbinslaymaker3346 Год назад +1

    Wow. I struggled understanding props from my current course (which i'm not shaming btw, the free course i'm taking is great) but this video summed it up so well for me. Very clear and concise. Thank you man.

  • @CE10118
    @CE10118 Год назад

    Great Videio - mentioning that props is an object was extremlly helpful

  • @maskman4821
    @maskman4821 3 года назад +3

    Pretty good tutorial, now I know how exactly props working !!!

  • @usamanayab8381
    @usamanayab8381 Год назад

    De-structuring Props object in an argument is one of the best part for me.

  • @Ricardo-fg1bc
    @Ricardo-fg1bc 2 года назад

    This course is amazing.... I´m really old fashion dev (clipper... d3 pick.. etc.) and it´s pretty clear all yours explanations... My first react app is on the wayyyy....

  • @twotentsdown
    @twotentsdown 2 года назад

    Fantastic video! You said you would teach us props and you did it quickly. Thank you!

  • @mikef.606
    @mikef.606 Год назад

    Been breaking my head for the past few hours. Trying to map over results. Sometimes it worked, sometimes it didn't. 😮‍💨
    Figured it must have something to do with the response time from the fetch, but didn't know what to do about it.
    I can always count on you to have the answer I need and to explain it simply enough that I can understand it at my current level.
    I owe you a debt of gratitude Shaun. I will not forget this once I graduate and am in a better situation. I hope you're doing well and that well-deserved success is finding you in all your endeavors. ✊
    [edit] I actually meant to leave this comment on the video titled "Full React Tutorial #17 - Fetching Data with useEffect" where you go over how to fetch data and conditionally display it once there actually is something to dosplay.
    I don't know how it ended up here. Guess I must've had too many tabs open trying to find the video with the right answer. 🤦‍♂😅

  • @mayursinalkar606
    @mayursinalkar606 3 года назад +2

    Also I love ❤️ your tutorials. so simple to understand.

  • @mehedihasan-4042
    @mehedihasan-4042 2 года назад

    Best ever react tutorial I have found

  • @mohammadabdelrahman786
    @mohammadabdelrahman786 Год назад

    I finally understood props.... God bless you.

  • @akshaypendyala
    @akshaypendyala 3 года назад +7

    When you create a separate file for the blog list and use props the react compiler will sometimes throw an error at blogs.map line, to solve this use "CTRL+C" to terminate current job and run the command "npm run start", this will recompile the project and you will see that the error is gone :)

    • @kashmirtechtv2948
      @kashmirtechtv2948 2 года назад

      Ahn?!

    • @54321conor
      @54321conor 2 года назад

      I was having this issue and it really annoyed me for ages, couldn't figure out what was happening. Thank you so much for your solution.
      Do you (Or anyone else) know why it happens at all? My very first time using React, I don't know if this is a common thing!

    • @akshaypendyala
      @akshaypendyala 2 года назад +2

      @@54321conor Glad that it helped 😊

    • @mcloughman
      @mcloughman 2 года назад

      THANK YOU. I only spent 10 minutes before I decided to look at the comments to see if this problem had been encountered. But it could have been hours!

    • @akshaypendyala
      @akshaypendyala 2 года назад

      @@mcloughman no problem mate, as a fellow programmer I knew this would help so the reason I put up this comment :)

  • @julio-dev
    @julio-dev 10 месяцев назад

    2023 and this tutorial really helped me understand props, I really appreciate that you explained the logic behind the concepts.

    • @NetNinja
      @NetNinja  10 месяцев назад

      Glad it was helpful Julio :)

  • @Web-Dev-Codi
    @Web-Dev-Codi Год назад

    Anyone wanting to learn Web Development could just stay on this youtube channel and land a job! Amazing teaching skills!

    • @NetNinja
      @NetNinja  Год назад

      Thanks Robi!

    • @Web-Dev-Codi
      @Web-Dev-Codi Год назад

      @@NetNinja And now decided to grab a Udemy Course! Excellent!

  • @yelizkosar3478
    @yelizkosar3478 Год назад

    I really love it! Great! What can I say more I really don't know but Sir you're the perfect instructor. Thank you very much!

  • @empowercode
    @empowercode 3 года назад +5

    Hey! I just found your channel and subscribed, love what you're doing! Particularly, I like how clear and detailed your explanations are as well as the depth of knowledge you have surrounding the topic! Since I run a tech education channel as well, I love to see fellow Content Creators sharing, educating, and inspiring a large global audience. I wish you the best of luck on your RUclips Journey, can't wait to see you succeed!
    Your content really stands out and you've put so much thought into your videos!
    Cheers, happy holidays, and keep up the great work :)

  • @pourianayeb1063
    @pourianayeb1063 3 года назад

    Thanks man, you means a lot for all of us

  • @chrisdietrich1533
    @chrisdietrich1533 3 года назад

    Thank you so much for this. It's extremely helpful

  • @soulju9144
    @soulju9144 Год назад

    I was struggling to understand this and this video gave me perfect clarity. Thank you

    • @NetNinja
      @NetNinja  Год назад

      That's awesome to hear, thanks for watching Soulju!

  • @PepperNoh
    @PepperNoh 3 года назад

    Thanks for the great tutorial!

  • @arazmammadov9276
    @arazmammadov9276 3 года назад

    Thanks a lot, you saved my life, my master!

  • @amanihrd7609
    @amanihrd7609 2 года назад

    you Sir deserve a trophy for this course

  • @etekumoses3320
    @etekumoses3320 Год назад

    I have been looking for a good tutor to take me through react tutorials but i have landed and yo. I must say you are the best so far.. Thank you sir

    • @NetNinja
      @NetNinja  Год назад

      You're very welcome Eteku! Thanks for watching :)

  • @abiharvey4984
    @abiharvey4984 Год назад

    This was really helpful thank you!!

  • @onurucar1112
    @onurucar1112 2 года назад

    Thanks again! Very helpful

  • @jinjiprem
    @jinjiprem Год назад

    so far learning from you is sooooo easy to understand, thankyou verymuch may god bless your kindness soul

    • @NetNinja
      @NetNinja  Год назад +1

      Glad to hear that! Thanks Jinji :)

  • @prasathj7436
    @prasathj7436 9 месяцев назад

    Thank you for great videos and explaining the foundation very clearly !!!

    • @NetNinja
      @NetNinja  9 месяцев назад

      Glad it was helpful! :)

  • @TheDima23
    @TheDima23 2 года назад

    Amazing video, thank you!

  • @TheCodingOdyssey
    @TheCodingOdyssey 3 года назад

    Nice explanations! like always!

  • @annabadyka4658
    @annabadyka4658 11 месяцев назад

    You explain very well. Thank you!

    • @NetNinja
      @NetNinja  11 месяцев назад

      You're very welcome!

  • @legking
    @legking Год назад

    This is SO helpful! THANK YOU!!!

    • @NetNinja
      @NetNinja  Год назад

      Glad it helped Chris!

  • @yousoumar
    @yousoumar 2 года назад

    Hi, thank you for this tutorial ! Is it possible to know what icon extension you use in your vs code ?

  • @ardeshirmoradikhah5119
    @ardeshirmoradikhah5119 2 года назад

    ممنون شایان جون

  • @michaelhatsis66
    @michaelhatsis66 Год назад

    bought a couple react courses on Udemy. This free couse is waaaaaaay better. Ur a great teacher. thanks!

    • @NetNinja
      @NetNinja  Год назад +1

      Thanks Michael! much appreciated :)

  • @thienphucnguyenvuong1205
    @thienphucnguyenvuong1205 3 года назад

    was waiting THIS video from 2020....

  • @GiancarloCarccamo
    @GiancarloCarccamo 2 года назад

    great video man

  • @alexberdea
    @alexberdea Год назад

    masterful , I joined after a few lessons, this channel is my life now

    • @NetNinja
      @NetNinja  Год назад +1

      Awesome to hear that Lex, thanks for your support :)

    • @alexberdea
      @alexberdea Год назад

      @@NetNinja thank you for your lessons!!

  • @kristijanlazarev
    @kristijanlazarev 11 месяцев назад

    clean explanation

  • @afewthoughts7755
    @afewthoughts7755 2 года назад

    Really the best tutorial

  • @user-he6xf1zr5e
    @user-he6xf1zr5e 6 месяцев назад

    Thank you so much, this video helped me a lot.

    • @NetNinja
      @NetNinja  6 месяцев назад

      Glad it helped! :)

  • @Sky-gk4qq
    @Sky-gk4qq 2 года назад

    awesome content man

  • @learningit2572
    @learningit2572 Год назад

    This Ninja the best!!!

  • @williambradley1448
    @williambradley1448 Год назад

    Hi Shaun, I definitely agree with the majority of comments on here, you certainly do seem to know how to teach adults, I am very much enjoying learning with you. I would like to ask one question though... if you were building a website from scratch, what would you use - straightforward HTML and CSS, Bootstrap 5, React or something else?

  • @KevinTempelx
    @KevinTempelx 3 года назад

    Thanks!

  • @tarekghosn3648
    @tarekghosn3648 Год назад

    you my man. are awesome.

  • @danmiller7709
    @danmiller7709 2 года назад

    What folder icon theme is this! It's the cleanest
    Also the video series is pretty damned good. Hats off!

  • @kuka5e
    @kuka5e Год назад

    Brilliant

  • @Akira-sh7ts
    @Akira-sh7ts 2 года назад

    You are really good teacher

  • @muhamedkhaled9796
    @muhamedkhaled9796 3 года назад +1

    I really wish if I can pay you, you are a great teacher

  • @silverboii5339
    @silverboii5339 6 дней назад

    thanks for this course

    • @NetNinja
      @NetNinja  4 дня назад

      Hope it was helpful! :)

  • @igorstrzezysz9992
    @igorstrzezysz9992 8 месяцев назад

    Very helpful video, thanks ;)

    • @NetNinja
      @NetNinja  8 месяцев назад

      Glad it was helpful! :)

  • @ShaliniNegi24
    @ShaliniNegi24 Год назад

    Thank you.

  • @dawudibnsalahaldin343
    @dawudibnsalahaldin343 Год назад

    excellent job

    • @NetNinja
      @NetNinja  Год назад

      Thank you Dawud! awesome display pic :)

  • @MikeKing710
    @MikeKing710 3 года назад +1

    Hi Shaun! I've got an issue with a component like your BlogList. Program says I can't use this as a JSX component and it failed to compile the data from Home component. What it can be and why? And how to solve this problem?

  • @cydoentis
    @cydoentis 3 года назад

    Are you using a modified Dark+ theme, because I like how yours highlights the react components a different color and wish mine would do the same.

  • @batuhanbatuhan3605
    @batuhanbatuhan3605 3 года назад

    Okay what if want to share data between two components neither of which is the other's parent or child. Is making a third component that is both components' parent and getting the data from there a good practice?

  • @chukwukaosakwe3646
    @chukwukaosakwe3646 4 месяца назад

    Yo. How are you doing that SFC + tab = component template thing?

  • @liortzabari3551
    @liortzabari3551 2 года назад

    hey net ninja!
    what did you do to make VS Code save everything without any popups?
    whenever I make changes it tells me that there are "pending changes" and I need to manually accept every change I make.
    do you know how to disable it?

  • @missinglink2416
    @missinglink2416 2 года назад

    Hi Sensei. Correct me if I'm wrong, but importing module "BlogList" to Home simple means where invoking it and were using "blogs" as argument as indicate here

  • @bernardofoegbu6959
    @bernardofoegbu6959 2 года назад

    You are the best man

  • @pauloferreira4040
    @pauloferreira4040 2 года назад +2

    quick question: in a previous video you used square brackets to deconstruct the data, such as "const [blogs, setBlogs] = useState(", but in this video you used curly brackets to do deconstruction of the props, "const BlogList = ({blogs, title})". What is the reasoning of using one over the other? Thanks and as everyone else pointed out, excellent video series!

    • @flamingmind2671
      @flamingmind2671 2 года назад

      I found the new syntax he showed wasn't explained well. It's hard to read.

    • @notspooky1990
      @notspooky1990 2 года назад +3

      He used {} because props is an object. When destructuring objects you use { }. While Arrays use [ ]. I would recommend reviewing destructuring concept in JavaScript if you are still struggling. This is all vanilla syntax so far besides the arrow function using () instead of {}, but that is JSX synatx.

  • @subee128
    @subee128 Год назад

    Thanks

  • @mriganksingh7586
    @mriganksingh7586 3 года назад +1

    props made simple 😎

  • @MrBrightside6969
    @MrBrightside6969 2 года назад

    you're a god

  • @programminglanguage2806
    @programminglanguage2806 9 месяцев назад

    Very good ❤

    • @NetNinja
      @NetNinja  9 месяцев назад

      Thanks 😄

  • @Mahmudulhasan-ts5hm
    @Mahmudulhasan-ts5hm 3 года назад

    thanks

  • @shadebinder3599
    @shadebinder3599 Год назад

    How does destrucuring props directly when its passed in work? Like can you destructure any parameter or is that a react thing

  • @eth-official
    @eth-official 2 года назад

    mannnn, thanks

  • @lean2009
    @lean2009 2 года назад

    great