what are props and how use them in react js
Props (properties) are how you pass data from a parent component to a child component.
They are read-only — the child component can use them but should not change them.Passing props (Parent ➜ Child)
Parent component
Comments
Post a Comment