Download Brochure

What Are Props & PropTypes In React?

views
image-1

What are the Props?

Props basically stand for properties in which data can be passed from parent to child component as an argument. They are read-only, i.e., immutable, which cannot be modified inside the components. In other words, that is how the different components can communicate with each other using props. Props canot pass the data from child to parent component or at the same level. In that case, we use a library called redux.

Comments

Avatar

Leave a Reply

Your email address will not be published. Required fields are marked *