-> In react we call function as component for that component we pass argument that called as props.
-> Props is an object format
-> why props?
- without props, every component display the exact same static content while using the props it pass just like aruguments into a regular js.
- It allows only one component to send data to another component.
- It is in read only format the parent owns the value.
Top comments (0)