PROPS in React explained 📧

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ก.ค. 2024
  • #React #JavaScript #tutorial
    00:00:00 introduction
    00:00:56 props
    00:04:49 index.css
    00:06:28 multiple components
    00:07:49 propType
    00:10:18 defaultProps
    00:11:47 conclusion
    // props = read-only properties that are shared between components.
    // A parent component can send data to a child component.
    // key=value
    // propTypes = a mechanism that ensures that the passed value
    // is of the correct datatype.
    // age: PropTypes.number
    // defaultProps = default values for props in case they are not
    // passed from the parent component
    // name: "Guest"

ความคิดเห็น • 121

  • @BroCodez
    @BroCodez  9 หลายเดือนก่อน +33

    import Student from './Student.jsx'
    function App() {
    return(







    );
    }
    export default App
    import PropTypes from 'prop-types';
    function Student(props){
    return(

    Name: {props.name}
    Age: {props.age}
    Student: {props.isStudent ? "Yes" : "No"}

    );
    }
    Student.propTypes ={
    name: PropTypes.string,
    age: PropTypes.number,
    isStudent: PropTypes.bool,
    }
    Student.defaultProps = {
    name: "Guest",
    age: 0,
    isStudent: false,
    };
    export default Student
    .student{
    font-family: Arial, sans-serif;
    font-size: 2em;
    padding: 10px;
    border: 1px solid hsla(0, 0%, 50%, 0.8);
    }
    .student p{
    margin: 0;
    }

    • @thecoder1694
      @thecoder1694 9 หลายเดือนก่อน +7

      No word you man priceless help!

    • @arpanshah355
      @arpanshah355 9 หลายเดือนก่อน +5

      @BroCodez !!!! nice to know your not dead :D also, could you do a toutorial for C/C++ windows (kinda like tkinter for python) thx
      good job on your vids though, helped me a lot. :)
      super simple and easy to understand otherwise, the perfect combo for beginers

  • @andredubbs4854
    @andredubbs4854 9 หลายเดือนก่อน +44

    I really cannot express how much of a positive impact you’re having on the world. Your videos helped me immensely, the education is poor in my country and i can make it up alot with your videos

  • @malikgulraiz3659
    @malikgulraiz3659 9 หลายเดือนก่อน +13

    We want more React tutorials from bro
    👇

  • @ursusrursus9325
    @ursusrursus9325 9 หลายเดือนก่อน +7

    Thanks Bro! You are one of those about whom philosophers have said: "The obvious is something that no one sees until someone expresses it in the simplest way."

  • @codewithdahir
    @codewithdahir 9 หลายเดือนก่อน +9

    You are so good man, keep going.
    My whole front end development belongs to you.
    Thanks a lot.

  • @tonytodd7011
    @tonytodd7011 8 หลายเดือนก่อน +2

    Thanks Bro! You are really an awesome teacher, and your way of dividing the topic into small lessons are great! That is very much more practical for people to learn than watching a dozens of hours video!

  • @ff4937
    @ff4937 8 หลายเดือนก่อน +1

    Excellent overview of PROPS!!! Very clear and concise! Please keep going.

  • @AC_Music
    @AC_Music 5 หลายเดือนก่อน +1

    blessed to have you as a mentor. A thank you is not enough! Much love ❤

  • @abdulkadiraminu262
    @abdulkadiraminu262 9 หลายเดือนก่อน +4

    😭dude idk how u knew I was just learning react but thank you for the videos.

    • @BroCodez
      @BroCodez  9 หลายเดือนก่อน +4

      I'm from the future

    • @ImAbbasious
      @ImAbbasious 6 หลายเดือนก่อน

      pls make 10hours tutorial of React.js from Beginner to Expart please and please sir, can't pay for tuitions fee but bro code on TH-cam bring more than Degrees@@BroCodez

  • @sarahwbas
    @sarahwbas หลายเดือนก่อน

    You are an amazing teacher!! No one should teach coding after you!! 👏🏼👏🏼 Thank you for existing!

  • @frankmccann29
    @frankmccann29 9 หลายเดือนก่อน

    Hey, appreciate you popping in with a great video. Saved it.

  • @aroshm1682
    @aroshm1682 3 หลายเดือนก่อน

    Broo!!! I learned crazy loads of stuff in this 12 mins than I try to learn past 24 hours. Damn good content bro!! Thank you!!

  • @hunin27
    @hunin27 9 หลายเดือนก่อน +1

    Thanks!
    I just finished watching and I learned a lot from this ❤

  • @mohamedreda6299
    @mohamedreda6299 8 หลายเดือนก่อน

    This series is awe-inspiring thank you a lot!❤❤❤❤❤❤

  • @magomihaly1741
    @magomihaly1741 9 หลายเดือนก่อน

    Love your vids, focus on essence , easy to understand. Thank you Bro!

  • @vishalboudhh
    @vishalboudhh 9 หลายเดือนก่อน +2

    I love your videos ❤
    Very simple easy to understand
    And not to much time taking

  • @sulaimanmisri6411
    @sulaimanmisri6411 5 หลายเดือนก่อน +1

    I am relatively new to React.js and your explanation make sense and easy to follow. Kudos Bro!

  • @wilmermedina7258
    @wilmermedina7258 18 วันที่ผ่านมา

    Bro, just 12 minutes was enough to perfectly understand this topic. I've watched several videos about it, but this one is just perfect. Thanks a lot!

  • @cubingwithshine180
    @cubingwithshine180 9 หลายเดือนก่อน +1

    Thank you so much for this awesome tutorial

  • @romyt9816
    @romyt9816 8 หลายเดือนก่อน

    The first video I see that explains clearly that props are an OBJECT and defines them with a punctual sentence and not with a vague terms or with comparisons like "parameter of a function" or "pseudo HTML attribute".
    Thanks, now I understand them better, I'll follow the serie.

  • @kevz_codes
    @kevz_codes 4 หลายเดือนก่อน

    Wow 😮so easy to understand! Thank you so much ☺️ I just subscribed ❤

  • @dark_camper83
    @dark_camper83 2 หลายเดือนก่อน

    Nice explanation buddy. Thank You!!!

  • @deitunegold4593
    @deitunegold4593 3 หลายเดือนก่อน

    First tutorial i watched and i understood thoroughly 🔥

  • @DrClappinCh33ks
    @DrClappinCh33ks 5 หลายเดือนก่อน

    Extremely great presentation ❤

  • @SatyabrataOjha-mr5nr
    @SatyabrataOjha-mr5nr 3 หลายเดือนก่อน

    Wow, just nice explanation, love it

  • @keisha7586
    @keisha7586 3 หลายเดือนก่อน

    Thanks! clear presentation

  • @keisergg8701
    @keisergg8701 7 หลายเดือนก่อน

    thanks a ton! u are amazing
    pls keep uploading.

  • @user-qj5bg3fp3r
    @user-qj5bg3fp3r 5 หลายเดือนก่อน

    Amazing content, Thank you. God bless

  • @ulbiomanzano7395
    @ulbiomanzano7395 9 หลายเดือนก่อน +2

    Que fácil se hace aprender react con BroCode, muchas gracias, excelente trabajo.

  • @Rae_895
    @Rae_895 9 หลายเดือนก่อน +4

    After this pls make a typescript version since typescript is mostly used with popular js frameworks

    • @juanmacias5922
      @juanmacias5922 9 หลายเดือนก่อน +1

      I mean, I"ve been using TS, you just have to add the right typing, when the IDE screams at you. :D

    • @juanmacias5922
      @juanmacias5922 9 หลายเดือนก่อน +1

      This was my final code for Student.tsx:
      interface StudentProps {
      name?: string;
      age?: number;
      isStudent?: boolean;
      }
      const Student = ({
      name = "Guest",
      age = 0,
      isStudent = false,
      }: StudentProps) => {
      return (
      Name: {name}
      Age: {age}
      Student: {isStudent ? "Yes" : "No"}
      );
      };
      export default Student;

  • @malikgulraiz3659
    @malikgulraiz3659 9 หลายเดือนก่อน +1

    My understanding for programming after watching Bros videos 📈📈📈❤

  • @theavalontech
    @theavalontech 4 หลายเดือนก่อน

    Awesome Explanation bro

  • @wisdomsamuel-pe2fm
    @wisdomsamuel-pe2fm 8 หลายเดือนก่อน

    God 🎉 bless you.. This is excellently explained 😊

  • @JoseSanchez-wg7pe
    @JoseSanchez-wg7pe 6 หลายเดือนก่อน

    tysm, you really helped me with this topic

  • @ykfazzz
    @ykfazzz 9 หลายเดือนก่อน

    please a full React course, even though i'm intermediate in React, your videos are ones i learn the most from

  • @techguykay
    @techguykay 8 หลายเดือนก่อน +1

    over 2 year ago i decided to change careers and learn coding, i started with your python videos, and today im an intern swe (mobile application development), currently learning react-native and still watch you Bro-Code. My programming Kinng 😤🙌 i wanna see more of this new seriesssss!!!

    • @HimanshuVermayohoho
      @HimanshuVermayohoho 8 หลายเดือนก่อน

      hey bro how did you get the job, can help me to know how you did it

  • @Odidi_Bee6ix
    @Odidi_Bee6ix 8 หลายเดือนก่อน

    Exquisite 🙌🏾

  • @piouf9850
    @piouf9850 3 หลายเดือนก่อน

    easy to understand , thank u

  • @AH_FS
    @AH_FS 9 หลายเดือนก่อน +1

    Thank you soo much i love ur videos

  • @volodyslove
    @volodyslove 9 หลายเดือนก่อน

    Nice lesson!😁

  • @hongdevp
    @hongdevp 8 หลายเดือนก่อน

    Thanks your tutorial ❤

  • @shivanshuhere
    @shivanshuhere 6 หลายเดือนก่อน

    clean and simple , loved it
    🌮

  • @balusubramaniam2335
    @balusubramaniam2335 4 หลายเดือนก่อน

    nice viedo very infornative ✌

  • @alwaysgrowww
    @alwaysgrowww 9 หลายเดือนก่อน +1

    cool video bro!

  • @nihongo_
    @nihongo_ 7 หลายเดือนก่อน

    thanks a million bro

  • @syramoran9270
    @syramoran9270 หลายเดือนก่อน

    TY ❤

  • @yurisouza4874
    @yurisouza4874 20 วันที่ผ่านมา

    Thanks Bro!

  • @riticklath6413
    @riticklath6413 9 หลายเดือนก่อน

    Waiting for it Thanks a lot bro ❤
    Please make it bit quick 🙏

  • @d1ce966
    @d1ce966 9 หลายเดือนก่อน

    Thank you bro more react videos

  • @CodingChannel1
    @CodingChannel1 9 หลายเดือนก่อน

    Amazing 👏

  • @hunin27
    @hunin27 9 หลายเดือนก่อน +2

    Thanks Bro!
    I really needed this playlist completed as i need to learn react and you arrived just in time !
    Respect ❤

  • @3X1Z3
    @3X1Z3 9 หลายเดือนก่อน +1

    Love u brooo❤

  • @benhur221
    @benhur221 8 หลายเดือนก่อน

    props to you Bro

  • @arealmemeist6421
    @arealmemeist6421 9 หลายเดือนก่อน +1

    'props' to you for making this video lol

    • @BroCodez
      @BroCodez  9 หลายเดือนก่อน +2

      I loled at that one

  • @oussemaelmzergui7055
    @oussemaelmzergui7055 9 หลายเดือนก่อน

    You never miss

  • @shadownerverdie
    @shadownerverdie 8 หลายเดือนก่อน

    so great

  • @user-cs6rz9jn8n
    @user-cs6rz9jn8n 9 หลายเดือนก่อน +1

    Perfect

  • @ThatOnlyArab
    @ThatOnlyArab 9 หลายเดือนก่อน +1

    YOUR BACK 🎉🎉🎉🎉

  • @ahamedsha_jr
    @ahamedsha_jr 8 หลายเดือนก่อน

    not gonna start the series until you complete it anyways for the algorithm 🔥🔥🔥

  • @primordialatom1478
    @primordialatom1478 9 หลายเดือนก่อน +1

    Nice

  • @antoniobanderas1287
    @antoniobanderas1287 หลายเดือนก่อน

    perfect ;P

  • @_sf_editz1870
    @_sf_editz1870 8 หลายเดือนก่อน

    sensei waiting for the next video

  • @LoveandPeace1111
    @LoveandPeace1111 3 หลายเดือนก่อน

    Live it

  • @namesjeff5213
    @namesjeff5213 9 หลายเดือนก่อน +1

    👑

  • @drididali1755
    @drididali1755 8 หลายเดือนก่อน

    hoooks bro

  • @user-dz3lq5hb8m
    @user-dz3lq5hb8m 9 หลายเดือนก่อน +1

    Be like bro code
    Absolutely legendary BROgramer

  • @Yesterday_i_ate_rat
    @Yesterday_i_ate_rat 9 หลายเดือนก่อน

    ❤❤

  • @silverfoxcr5194
    @silverfoxcr5194 9 หลายเดือนก่อน

    Bro you have to finish the Playlist in less than 3 months I'm doing my final computer science proj using React and I need your explanation ❤

  • @aureusvisions
    @aureusvisions 9 หลายเดือนก่อน +1

    wow

  • @tonich81
    @tonich81 8 หลายเดือนก่อน

    Can you do nodejs tutorial 😆 Your videos its easy to understand

  • @GATIF786
    @GATIF786 8 หลายเดือนก่อน

    Kindly, make a complete video on React Js and React Native (Including User Login Authention from Mysqli database).

  • @tukkinum
    @tukkinum 6 หลายเดือนก่อน

    i love this, but i have a question. how would we go about different images for each student? ive tried to figure it out myself but to no avail. thanks!

  • @_sf_editz1870
    @_sf_editz1870 9 หลายเดือนก่อน

    sensei

  • @user-ni9rs2wk4g
    @user-ni9rs2wk4g 9 หลายเดือนก่อน

    Can you do a video with a full course of Visual BASIC Programming language??

  • @jiazhiong8273
    @jiazhiong8273 8 หลายเดือนก่อน

    bro, pls make a full course on android mobile application programming, maybe with Java or Kotlin. Thank you for your courses!

  • @21Kqaile-
    @21Kqaile- 9 หลายเดือนก่อน +1

    W

  • @animatsuki5345
    @animatsuki5345 4 หลายเดือนก่อน

    кайф!

  • @tee-hee9553
    @tee-hee9553 8 หลายเดือนก่อน

    The proptypes and the defaultprops does not have any color, beside white on my visual studio code what should I do ?, I know it's working but I want color to check if I type wrong or not please help

  • @Matheus-mr4tl
    @Matheus-mr4tl 9 วันที่ผ่านมา

    there is no need of import defaultProps in the Students.jsx file?

  • @tavidev
    @tavidev 9 หลายเดือนก่อน

    could you also make a deno fresh series?

  • @acosmic7841
    @acosmic7841 8 หลายเดือนก่อน

    Are you making a longer react tutorial slated to release in 2024?😊

  • @thashreef2125
    @thashreef2125 8 หลายเดือนก่อน

    waiting for react Hooks and CRUD operations

  • @ABM200_
    @ABM200_ 8 หลายเดือนก่อน

    assalomu alaykum qales Muhiddin aka

  • @lf00t
    @lf00t 5 หลายเดือนก่อน

    Bro, is there a way to enable autocomplete/ intellisense for prop.[dot] ... ?
    coming from java, this is really annoying and easy to make silly typos

  • @Comedy_Center12
    @Comedy_Center12 16 วันที่ผ่านมา +1

    Excellent ❤❤❤

  • @chakrounmohamedslim8748
    @chakrounmohamedslim8748 9 หลายเดือนก่อน

    Please give us a blazor tutoriel after. Net 8

  • @darkworldgaming5580
    @darkworldgaming5580 8 หลายเดือนก่อน

    bro bros voice change a lot in 2years

  • @Gunz1234
    @Gunz1234 8 หลายเดือนก่อน

    I think yt spies me cuz I am on a course and I'm on the props part n this shows up

  • @Delicatamente
    @Delicatamente 2 หลายเดือนก่อน

    huge thanks!

  • @pastuh
    @pastuh 9 หลายเดือนก่อน +1

    Strange why not called propDefaults

  • @focusedstudent464
    @focusedstudent464 9 หลายเดือนก่อน +1

    16th comment

  • @user-cs6rz9jn8n
    @user-cs6rz9jn8n 9 หลายเดือนก่อน +1

    Lessons

  • @noicefrog
    @noicefrog 8 หลายเดือนก่อน

    bro code is da besstt

  • @ImAbbasious
    @ImAbbasious 6 หลายเดือนก่อน

    Sir, we need 10Hours React for total Begnner please

  • @adonissss1881
    @adonissss1881 9 หลายเดือนก่อน

    Hi! I have a python project. And i want to create a gui for it. How do i? I dont know. Can you teach me or how do i learn it?

    • @hunin27
      @hunin27 9 หลายเดือนก่อน +1

      use a gui library for python

    • @adonissss1881
      @adonissss1881 9 หลายเดือนก่อน +1

      @@hunin27 how?

  • @dwwe-xt5ys
    @dwwe-xt5ys 9 หลายเดือนก่อน

    make a full couse on x86 assembly language

  • @fatouz5104
    @fatouz5104 8 หลายเดือนก่อน

    How do you know I have a react project for college😭thank you

  • @rodeotcd
    @rodeotcd 9 หลายเดือนก่อน +1

    This is

  • @aletondaX
    @aletondaX 9 หลายเดือนก่อน +2

    Do you still love pizza?

    • @BroCodez
      @BroCodez  9 หลายเดือนก่อน +3

      always and forever

  • @protibadimon4169
    @protibadimon4169 8 หลายเดือนก่อน

    Hey bro, can you help me by coding chess game?