PROPS in React explained 📧

  Рет қаралды 84,987

Bro Code

Bro Code

Күн бұрын

Пікірлер: 134
@BroCodez
@BroCodez 11 ай бұрын
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 11 ай бұрын
No word you man priceless help!
@arpanshah355
@arpanshah355 11 ай бұрын
@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 11 ай бұрын
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 11 ай бұрын
You are so good man, keep going. My whole front end development belongs to you. Thanks a lot.
@wilmermedina7258
@wilmermedina7258 3 ай бұрын
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!
@Ji.Hikari
@Ji.Hikari 5 күн бұрын
Omg, best video I've seen about props AND with extra useful informations ! Thanks a lot.
@malikgulraiz3659
@malikgulraiz3659 11 ай бұрын
We want more React tutorials from bro 👇
@AC_Music
@AC_Music 8 ай бұрын
blessed to have you as a mentor. A thank you is not enough! Much love ❤
@romyt9816
@romyt9816 10 ай бұрын
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.
@sulaimanmisri6411
@sulaimanmisri6411 7 ай бұрын
I am relatively new to React.js and your explanation make sense and easy to follow. Kudos Bro!
@sarahwbas
@sarahwbas 3 ай бұрын
You are an amazing teacher!! No one should teach coding after you!! 👏🏼👏🏼 Thank you for existing!
@abdulkadiraminu262
@abdulkadiraminu262 11 ай бұрын
😭dude idk how u knew I was just learning react but thank you for the videos.
@BroCodez
@BroCodez 11 ай бұрын
I'm from the future
@ImAbbasious
@ImAbbasious 9 ай бұрын
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 KZbin bring more than Degrees@@BroCodez
@techguykay
@techguykay 11 ай бұрын
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 11 ай бұрын
hey bro how did you get the job, can help me to know how you did it
@aroshm1682
@aroshm1682 6 ай бұрын
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!!
@beqagagua
@beqagagua Ай бұрын
Love you videos , easy to understand and is also easy to repeat with you at the same time .
@malikgulraiz3659
@malikgulraiz3659 11 ай бұрын
My understanding for programming after watching Bros videos 📈📈📈❤
@Rae_895
@Rae_895 11 ай бұрын
After this pls make a typescript version since typescript is mostly used with popular js frameworks
@juanmacias5922
@juanmacias5922 11 ай бұрын
I mean, I"ve been using TS, you just have to add the right typing, when the IDE screams at you. :D
@juanmacias5922
@juanmacias5922 11 ай бұрын
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;
@vishalboudhh
@vishalboudhh 11 ай бұрын
I love your videos ❤ Very simple easy to understand And not to much time taking
@hunin27
@hunin27 11 ай бұрын
Thanks! I just finished watching and I learned a lot from this ❤
@deitunegold4593
@deitunegold4593 6 ай бұрын
First tutorial i watched and i understood thoroughly 🔥
@cubingwithshine180
@cubingwithshine180 11 ай бұрын
Thank you so much for this awesome tutorial
@ulbiomanzano7395
@ulbiomanzano7395 11 ай бұрын
Que fácil se hace aprender react con BroCode, muchas gracias, excelente trabajo.
@shubhamrathod9249
@shubhamrathod9249 23 күн бұрын
My suggestion is to also tell why it's necessary to use props and what will happen if we don't use it.
@1750-q4y
@1750-q4y 11 ай бұрын
Be like bro code Absolutely legendary BROgramer
@mohamedreda6299
@mohamedreda6299 11 ай бұрын
This series is awe-inspiring thank you a lot!❤❤❤❤❤❤
@balusubramaniam2335
@balusubramaniam2335 6 ай бұрын
nice viedo very infornative ✌
@ahamedsha_jr
@ahamedsha_jr 11 ай бұрын
not gonna start the series until you complete it anyways for the algorithm 🔥🔥🔥
@kevz_codes
@kevz_codes 7 ай бұрын
Wow 😮so easy to understand! Thank you so much ☺️ I just subscribed ❤
@dark_camper83
@dark_camper83 5 ай бұрын
Nice explanation buddy. Thank You!!!
@JoseSanchez-wg7pe
@JoseSanchez-wg7pe 9 ай бұрын
tysm, you really helped me with this topic
@arealmemeist6421
@arealmemeist6421 11 ай бұрын
'props' to you for making this video lol
@BroCodez
@BroCodez 11 ай бұрын
I loled at that one
@professorpoke
@professorpoke Ай бұрын
This video helped me. Thanks 👍👍
@professorpoke
@professorpoke Ай бұрын
I checked your account. And its an instant subscribe from my side. Hoping great content from your side.
@piouf9850
@piouf9850 6 ай бұрын
easy to understand , thank u
@wisdomsamuel-pe2fm
@wisdomsamuel-pe2fm 11 ай бұрын
God 🎉 bless you.. This is excellently explained 😊
@BrianMwaura-p1q
@BrianMwaura-p1q 7 ай бұрын
Amazing content, Thank you. God bless
@keisergg8701
@keisergg8701 10 ай бұрын
thanks a ton! u are amazing pls keep uploading.
@DrClappinCh33ks
@DrClappinCh33ks 8 ай бұрын
Extremely great presentation ❤
@ursusrursus9325
@ursusrursus9325 11 ай бұрын
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."
@Comedy_Center12
@Comedy_Center12 3 ай бұрын
Excellent ❤❤❤
@ThatOnlyArab
@ThatOnlyArab 11 ай бұрын
YOUR BACK 🎉🎉🎉🎉
@keisha7586
@keisha7586 6 ай бұрын
Thanks! clear presentation
@shivanshuhere
@shivanshuhere 9 ай бұрын
clean and simple , loved it 🌮
@Cet.w1p
@Cet.w1p 11 ай бұрын
Thank you soo much i love ur videos
@benhur221
@benhur221 11 ай бұрын
props to you Bro
@JafarbeXudoyqulov
@JafarbeXudoyqulov 11 ай бұрын
Perfect
@alwaysgrowww
@alwaysgrowww 11 ай бұрын
cool video bro!
@prakashnavin6245
@prakashnavin6245 11 күн бұрын
really best explanation of this topic @BroCodez is the best
@otabekmadaminov-z2i
@otabekmadaminov-z2i 29 күн бұрын
Thank you bro
@Odidi_Bee6ix
@Odidi_Bee6ix 10 ай бұрын
Exquisite 🙌🏾
@riticklath6413
@riticklath6413 11 ай бұрын
Waiting for it Thanks a lot bro ❤ Please make it bit quick 🙏
@yurisouza4874
@yurisouza4874 3 ай бұрын
Thanks Bro!
@shadownerverdie
@shadownerverdie 11 ай бұрын
so great
@vlad_the_player
@vlad_the_player 11 ай бұрын
Nice lesson!😁
@d1ce966
@d1ce966 11 ай бұрын
Thank you bro more react videos
@bilalshahid5118
@bilalshahid5118 2 ай бұрын
bro in react 18 in defaultProps its gives warning
@pastuh
@pastuh 11 ай бұрын
Strange why not called propDefaults
@3X1Z3
@3X1Z3 11 ай бұрын
Love u brooo❤
@tonich81
@tonich81 10 ай бұрын
Can you do nodejs tutorial 😆 Your videos its easy to understand
@_____vieve
@_____vieve 3 күн бұрын
thankssss
@Matheus-mr4tl
@Matheus-mr4tl 2 ай бұрын
there is no need of import defaultProps in the Students.jsx file?
@jiazhiong8273
@jiazhiong8273 11 ай бұрын
bro, pls make a full course on android mobile application programming, maybe with Java or Kotlin. Thank you for your courses!
@DimitrisKoliomichalis
@DimitrisKoliomichalis 11 ай бұрын
Can you do a video with a full course of Visual BASIC Programming language??
@antoniobanderas1287
@antoniobanderas1287 3 ай бұрын
perfect ;P
@TheFenixus
@TheFenixus Ай бұрын
Hey Bro and other bros, I am following the course along and I am a bit stubborn to use my onw examples. I am have managed to debug 99% of my practice application to this point but I am stuck when it comes to propTypes. I am doing the following Card.propTypes = { img: PropTypes.object, title: PropTypes.string, text: PropTypes.string, stressTester: PropTypes.bool, groupMembers: PropTypes.number, and all is well but I feel when it comes to images PropType should not be Object as I am getting the following error: Warning: Failed App.jsx[random_value]:10 prop type: Invalid prop `img` of type `string` supplied to `Card`, expected `object`. Now I see that app is expecting the string and I set an object. Just want to know is there a prop type for image or I should just go with a string instead? Also Bro BIG thank your for all the knowledge that you are sharing.
@tee-hee9553
@tee-hee9553 11 ай бұрын
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
@aureusvisions
@aureusvisions 11 ай бұрын
wow
@namesjeff5213
@namesjeff5213 11 ай бұрын
👑
@tavidev
@tavidev 11 ай бұрын
could you also make a deno fresh series?
@ImAbbasious
@ImAbbasious 9 ай бұрын
Sir, we need 10Hours React for total Begnner please
@darkworldgaming5580
@darkworldgaming5580 11 ай бұрын
bro bros voice change a lot in 2years
@ABM200_
@ABM200_ 11 ай бұрын
assalomu alaykum qales Muhiddin aka
@Gunz1234
@Gunz1234 11 ай бұрын
I think yt spies me cuz I am on a course and I'm on the props part n this shows up
@chakrounmohamedslim8748
@chakrounmohamedslim8748 11 ай бұрын
Please give us a blazor tutoriel after. Net 8
@fatouz5104
@fatouz5104 11 ай бұрын
How do you know I have a react project for college😭thank you
@JafarbeXudoyqulov
@JafarbeXudoyqulov 11 ай бұрын
Lessons
@21Kqaile-
@21Kqaile- 11 ай бұрын
W
@Delicatamente
@Delicatamente 5 ай бұрын
huge thanks!
@dwwe-xt5ys
@dwwe-xt5ys 11 ай бұрын
make a full couse on x86 assembly language
@animatsuki5345
@animatsuki5345 6 ай бұрын
кайф!
@noicefrog
@noicefrog 11 ай бұрын
bro code is da besstt
@rodeotcd
@rodeotcd 11 ай бұрын
This is
@protibadimon4169
@protibadimon4169 11 ай бұрын
Hey bro, can you help me by coding chess game?
@aletondaX
@aletondaX 11 ай бұрын
Do you still love pizza?
@BroCodez
@BroCodez 11 ай бұрын
always and forever
@noicefrog
@noicefrog 11 ай бұрын
bro code pls colab
@kaungkinzone2448
@kaungkinzone2448 11 ай бұрын
random comment 3.0
@tonytodd7011
@tonytodd7011 10 ай бұрын
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!
@focusedstudent464
@focusedstudent464 11 ай бұрын
16th comment
@peaceomole
@peaceomole 19 күн бұрын
Thank you for this!!! You made it so simplified When using props for cards How can I add an image to just one card
@lf00t
@lf00t 8 ай бұрын
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
@annahuzair4671
@annahuzair4671 26 күн бұрын
This video is so cool...thank you! For explaining so well
@ff4937
@ff4937 10 ай бұрын
Excellent overview of PROPS!!! Very clear and concise! Please keep going.
@frankmccann29
@frankmccann29 11 ай бұрын
Hey, appreciate you popping in with a great video. Saved it.
@acosmic7841
@acosmic7841 11 ай бұрын
Are you making a longer react tutorial slated to release in 2024?😊
@thashreef2125
@thashreef2125 11 ай бұрын
waiting for react Hooks and CRUD operations
@theavalontech
@theavalontech 7 ай бұрын
Awesome Explanation bro
@_sf_editz1870
@_sf_editz1870 11 ай бұрын
sensei waiting for the next video
@shubhamrathod9249
@shubhamrathod9249 23 күн бұрын
nicely explained
@GATIF786
@GATIF786 11 ай бұрын
Kindly, make a complete video on React Js and React Native (Including User Login Authention from Mysqli database).
@adonissss1881
@adonissss1881 11 ай бұрын
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 11 ай бұрын
use a gui library for python
@adonissss1881
@adonissss1881 11 ай бұрын
@@hunin27 how?
@silverfoxcr5194
@silverfoxcr5194 11 ай бұрын
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 ❤
@nihongo_
@nihongo_ 10 ай бұрын
thanks a million bro
How to CONDITIONAL RENDER in React ❓
10:15
Bro Code
Рет қаралды 36 М.
Learn how to use Props in React in 19 minutes (for beginners)
19:12
Sonny Sangha
Рет қаралды 148 М.
Apple peeling hack @scottsreality
00:37
_vector_
Рет қаралды 132 МЛН
Amazing Parenting Hacks! 👶✨ #ParentingTips #LifeHacks
00:18
Snack Chat
Рет қаралды 22 МЛН
Пришёл к другу на ночёвку 😂
01:00
Cadrol&Fatich
Рет қаралды 11 МЛН
OpenAI’s New ChatGPT: 7 Incredible Capabilities!
6:27
Two Minute Papers
Рет қаралды 183 М.
Every React Concept Explained in 12 Minutes
11:53
Code Bootcamp
Рет қаралды 660 М.
Build this JS calculator in 15 minutes! 🖩
15:20
Bro Code
Рет қаралды 567 М.
All The JavaScript You Need To Know For React
28:00
PedroTech
Рет қаралды 619 М.
The new CSS pseudo-classes explained - :is() :where() :has()
13:50
Kevin Powell
Рет қаралды 138 М.
These CSS PRO Tips & Tricks Will Blow Your Mind!
8:48
Coding2GO
Рет қаралды 337 М.
ALL React Hooks Explained in 12 Minutes
12:21
Code Bootcamp
Рет қаралды 131 М.