PropTypes & DefaultProps Tutorial: ReactJS PropTypes and DefaultProps

preview_player
Показать описание
Hello everyone
In this video, we have covered propTypes and defaultProps, that will allow you to add validation on propTypes so that you can make your code error free and it will also make your debugging easy

DefaultProps allows you to pass some default value to the props if that prop is not passed by Parent component then your component will work on the data passed in defaultProps.

PropTypes package has moved to separate package now from React version 15.5, so if you are using latest version then now we need to install this package using npm

npm install prop-types --save

Support my channel by liking and sharing my videos so that I can reach to wider audience. Please share it in your network 🙏

►Checkout previous video on Props

►Checkout previous video on NPM

►Checkout previous video on Components

►Virtual DOM and Real DOM

►ReactJS Introduction

►Click here to Subscribe the channel:

►JavaScript Course with ES6 Features-:

►Angular Complete Course:

►All important shorts videos:

Connect with Me On Social Media

#nishasingla #react #propTypes
Рекомендации по теме
Комментарии
Автор

you are my favorite. loved how precise and clear you are in your teaching. no extra words just perfect to learn

webdev-ry
Автор

Thank you so very much for you clear explanation! I found so many solutions online, none of them helped. Those solutions were also more complicated (add this to eslint code or add that function there etc). None of them helped. Your solution saved my learning process!

Ksahdia
Автор

Nisha, Heartly I"m thanking you Your way of teaching is so awesome Please complete this series . It would be great help🙏🏻

nilayshukla
Автор

Thanks Nisha for the react tutorial. Your way of teaching is outstanding. Please complete this series . It would be great help🙏🏻

vinodsharma
Автор

nice and clear, understood props validation at last

chokwewalshwade
Автор

Nice explanation thanks for making easyly understandable.

Karthik-ugll
Автор

hello Nisha, following all ur series of videos, please continue to complete the series as soon as possible, thanks in advance.

bharathkumar
Автор

Hi, your tutorials are best...
Please make more videos on angular and react.

prashantchakraborty
Автор

Hi Nisha, please do tutorials on angular / react state management.

pragmaticcoder
Автор

Hello Nisha, please do more tutorials on React.JS concepts.

smitabahalkar
Автор

i am not getting proptypes and default types when i type Link.
what am i doing wrong?

amithaacharya
Автор

Hi Nisha good evening.... I am got stucked in my email template in which i am trying to give width for image inside td and that code is from hybris background its renderrring there inside img tag but there is not physically img tag there instead they are adding hybris related code for that ... My problem is CSS not applying for image I am giving css like "#logo_shopee img{max-width: 57% !important; margin: 0 0px 2px 19px !important;}" and "#logo_shopee img{max-width: 57% !important; margin: 0 0px 2px 19px !important;}" this line is for image file extencion is VM

imranali-knmv
Автор

Please make the video on how to write a clean code

manojsatwase
Автор

if i had to read the documentation, i wouldn't be searching youtube tutorials for the same. it would be better if you could walk us through different use cases of proptypes step by step via live coding. just a suggestion. keep up the good work!

ameridiem
Автор

Can u please complete the series because you are not completing the previous series as well same u did with the angular playlist

pranitmogal
Автор

Hi Nisha, Can you please do some tutorials on reduxjs toolkit.

tejavarma
Автор

using TSX component with typescript in react is better than PropTypes....typescript has clear intellisense and huge features more than just defining DataTypes

adorebeauty
Автор

@Nisha Singla wishing you a very happy wala birthday

Vk_ke_shorts
Автор

Sister can pls upload next video in react...

sornamanickam
Автор

Hi Nisha ! I have been following your tutorials since long ! And they are amazing . Also I tried reaching on LinkedIn :kindly check . 😶

jahanzaibijaz
join shbcf.ru