what are props(properties) in react, how to pass props in react(2021)

Опубликовано: 28 Сентябрь 2024
на канале: navaneeth technical
162
3

In this video we will see what are props and how to pass props to a component.

props :
1) React Props are like function arguments in JavaScript,
2) When React will come across a user-defined component, it passes JSX attributes as a single object to that component, which can be accessed inside that component by any name but by following the conventions, we access it as props. This particular object is called props.
3) If you didn't pass any of the attributes then props object will be empty.
4)The default value of a prop that is, if a prop is declared but not given any value, will be boolean true.

linkedin: www.linkedin.com/in/navaneeth7071
github: https://github.com/navvitech
Instagram:   / reactjszerotohero  

follow me on
Instagram at   / reactjszerotohero  
where you can contact me and learn react step by step from scratch.

keywords:
props
react props
react component
react tutorial
react tutorial for beginners
react js tutorial
react tutorial in english
learn react in english
learn react
reactjs tutorial for beginners
react tutorial for beginners in english
learn react for beginners
react for beginners
reactjs for beginners

#react #webdeveloper #javascript