PROPS in React explained 📧

Поділитися
Вставка
  • Опубліковано 19 чер 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"

КОМЕНТАРІ • 116

  • @BroCodez
    @BroCodez  8 місяців тому +31

    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 8 місяців тому +6

      No word you man priceless help!

    • @arpanshah355
      @arpanshah355 8 місяців тому +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 8 місяців тому +43

    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

  • @codewithdahir
    @codewithdahir 8 місяців тому +8

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

  • @ursusrursus9325
    @ursusrursus9325 8 місяців тому +6

    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."

  • @abdulkadiraminu262
    @abdulkadiraminu262 8 місяців тому +4

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

    • @BroCodez
      @BroCodez  8 місяців тому +4

      I'm from the future

    • @ImAbbasious
      @ImAbbasious 5 місяців тому

      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 UA-cam bring more than Degrees@@BroCodez

  • @AC_Music
    @AC_Music 4 місяці тому

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

  • @malikgulraiz3659
    @malikgulraiz3659 8 місяців тому +12

    We want more React tutorials from bro
    👇

  • @ff4937
    @ff4937 7 місяців тому +1

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

  • @tonytodd7011
    @tonytodd7011 7 місяців тому +1

    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!

  • @sarahwbas
    @sarahwbas 19 днів тому

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

  • @aroshm1682
    @aroshm1682 2 місяці тому

    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!!

  • @sulaimanmisri6411
    @sulaimanmisri6411 4 місяці тому +1

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

  • @hunin27
    @hunin27 8 місяців тому +1

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

  • @cubingwithshine180
    @cubingwithshine180 8 місяців тому +1

    Thank you so much for this awesome tutorial

  • @magomihaly1741
    @magomihaly1741 8 місяців тому

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

  • @romyt9816
    @romyt9816 7 місяців тому

    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.

  • @frankmccann29
    @frankmccann29 8 місяців тому

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

  • @vishalboudhh
    @vishalboudhh 8 місяців тому +2

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

  • @mohamedreda6299
    @mohamedreda6299 8 місяців тому

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

  • @dark_camper83
    @dark_camper83 2 місяці тому

    Nice explanation buddy. Thank You!!!

  • @keisergg8701
    @keisergg8701 6 місяців тому

    thanks a ton! u are amazing
    pls keep uploading.

  • @deitunegold4593
    @deitunegold4593 3 місяці тому

    First tutorial i watched and i understood thoroughly 🔥

  • @SatyabrataOjha-mr5nr
    @SatyabrataOjha-mr5nr 2 місяці тому

    Wow, just nice explanation, love it

  • @keisha7586
    @keisha7586 2 місяці тому

    Thanks! clear presentation

  • @Coder_263
    @Coder_263 4 місяці тому

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

  • @user-qj5bg3fp3r
    @user-qj5bg3fp3r 4 місяці тому

    Amazing content, Thank you. God bless

  • @JoseSanchez-wg7pe
    @JoseSanchez-wg7pe 6 місяців тому

    tysm, you really helped me with this topic

  • @ykfazzz
    @ykfazzz 8 місяців тому

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

  • @DrClappinCh33ks
    @DrClappinCh33ks 5 місяців тому

    Extremely great presentation ❤

  • @hongdevp
    @hongdevp 8 місяців тому

    Thanks your tutorial ❤

  • @AH_FS
    @AH_FS 8 місяців тому +1

    Thank you soo much i love ur videos

  • @piouf9850
    @piouf9850 2 місяці тому

    easy to understand , thank u

  • @Rae_895
    @Rae_895 8 місяців тому +4

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

    • @juanmacias5922
      @juanmacias5922 8 місяців тому +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 8 місяців тому +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;

  • @shivanshuhere
    @shivanshuhere 5 місяців тому

    clean and simple , loved it
    🌮

  • @ulbiomanzano7395
    @ulbiomanzano7395 8 місяців тому +2

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

  • @Odidi_Bee6ix
    @Odidi_Bee6ix 7 місяців тому

    Exquisite 🙌🏾

  • @wisdomsamuel-pe2fm
    @wisdomsamuel-pe2fm 7 місяців тому

    God 🎉 bless you.. This is excellently explained 😊

  • @nihongo_
    @nihongo_ 7 місяців тому

    thanks a million bro

  • @hunin27
    @hunin27 8 місяців тому +2

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

  • @malikgulraiz3659
    @malikgulraiz3659 8 місяців тому +1

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

  • @d1ce966
    @d1ce966 8 місяців тому

    Thank you bro more react videos

  • @balusubramaniam2335
    @balusubramaniam2335 3 місяці тому

    nice viedo very infornative ✌

  • @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

  • @volodyslove
    @volodyslove 8 місяців тому

    Nice lesson!😁

  • @syramoran9270
    @syramoran9270 24 дні тому

    TY ❤

  • @riticklath6413
    @riticklath6413 8 місяців тому

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

  • @benhur221
    @benhur221 7 місяців тому

    props to you Bro

  • @CodingChannel1
    @CodingChannel1 8 місяців тому

    Amazing 👏

  • @user-cs6rz9jn8n
    @user-cs6rz9jn8n 8 місяців тому +1

    Perfect

  • @shadownerverdie
    @shadownerverdie 8 місяців тому

    so great

  • @alwaysgrowww
    @alwaysgrowww 8 місяців тому +1

    cool video bro!

  • @ahamedsha_jr
    @ahamedsha_jr 8 місяців тому

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

  • @oussemaelmzergui7055
    @oussemaelmzergui7055 8 місяців тому

    You never miss

  • @primordialatom1478
    @primordialatom1478 8 місяців тому +1

    Nice

  • @3X1Z3
    @3X1Z3 8 місяців тому +1

    Love u brooo❤

  • @antoniobanderas1287
    @antoniobanderas1287 7 днів тому

    perfect ;P

  • @LoveandPeace1111
    @LoveandPeace1111 3 місяці тому

    Live it

  • @ThatOnlyArab
    @ThatOnlyArab 8 місяців тому +1

    YOUR BACK 🎉🎉🎉🎉

  • @_sf_editz1870
    @_sf_editz1870 8 місяців тому

    sensei waiting for the next video

  • @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!

  • @silverfoxcr5194
    @silverfoxcr5194 8 місяців тому

    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 ❤

  • @arealmemeist6421
    @arealmemeist6421 8 місяців тому +1

    'props' to you for making this video lol

    • @BroCodez
      @BroCodez  8 місяців тому +2

      I loled at that one

  • @user-ni9rs2wk4g
    @user-ni9rs2wk4g 8 місяців тому

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

  • @drididali1755
    @drididali1755 7 місяців тому

    hoooks bro

  • @Delicatamente
    @Delicatamente 2 місяці тому

    huge thanks!

  • @GATIF786
    @GATIF786 8 місяців тому

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

  • @namesjeff5213
    @namesjeff5213 8 місяців тому +1

    👑

  • @aureusvisions
    @aureusvisions 8 місяців тому +1

    wow

  • @Yesterday_i_ate_rat
    @Yesterday_i_ate_rat 8 місяців тому

    ❤❤

  • @jiazhiong8273
    @jiazhiong8273 8 місяців тому

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

  • @acosmic7841
    @acosmic7841 8 місяців тому

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

  • @tonich81
    @tonich81 7 місяців тому

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

  • @user-dz3lq5hb8m
    @user-dz3lq5hb8m 8 місяців тому +1

    Be like bro code
    Absolutely legendary BROgramer

  • @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

  • @tavidev
    @tavidev 8 місяців тому

    could you also make a deno fresh series?

  • @_sf_editz1870
    @_sf_editz1870 8 місяців тому

    sensei

  • @21Kqaile-
    @21Kqaile- 8 місяців тому +1

    W

  • @thashreef2125
    @thashreef2125 8 місяців тому

    waiting for react Hooks and CRUD operations

  • @lf00t
    @lf00t 4 місяці тому

    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

  • @animatsuki5345
    @animatsuki5345 3 місяці тому

    кайф!

  • @ABM200_
    @ABM200_ 8 місяців тому

    assalomu alaykum qales Muhiddin aka

  • @chakrounmohamedslim8748
    @chakrounmohamedslim8748 8 місяців тому

    Please give us a blazor tutoriel after. Net 8

  • @pastuh
    @pastuh 8 місяців тому +1

    Strange why not called propDefaults

  • @fatouz5104
    @fatouz5104 8 місяців тому

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

  • @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

  • @user-cs6rz9jn8n
    @user-cs6rz9jn8n 8 місяців тому +1

    Lessons

  • @ImAbbasious
    @ImAbbasious 5 місяців тому

    Sir, we need 10Hours React for total Begnner please

  • @adonissss1881
    @adonissss1881 8 місяців тому

    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 8 місяців тому +1

      use a gui library for python

    • @adonissss1881
      @adonissss1881 8 місяців тому +1

      @@hunin27 how?

  • @rodeotcd
    @rodeotcd 8 місяців тому +1

    This is

  • @dwwe-xt5ys
    @dwwe-xt5ys 8 місяців тому

    make a full couse on x86 assembly language

  • @focusedstudent464
    @focusedstudent464 8 місяців тому +1

    16th comment

  • @noicefrog
    @noicefrog 8 місяців тому

    bro code is da besstt

  • @protibadimon4169
    @protibadimon4169 8 місяців тому

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

  • @noicefrog
    @noicefrog 8 місяців тому

    bro code pls colab

  • @noicefrog
    @noicefrog 8 місяців тому

    what

  • @kaungkinzone2448
    @kaungkinzone2448 8 місяців тому

    random comment 3.0

  • @aletondaX
    @aletondaX 8 місяців тому +2

    Do you still love pizza?

    • @BroCodez
      @BroCodez  8 місяців тому +3

      always and forever

  • @emanueleconte506
    @emanueleconte506 8 місяців тому

    i'll ask you a full Java Spring Boot course

  • @mahamanebana4410
    @mahamanebana4410 4 місяці тому

    You made my day. Thank you. What's your email ?