What are Props?
Props is the shorthand for Properties in React. They are read-only components that must be kept pure (i.e. immutable
). They are always passed down from the parent to the child components throughout the application.
A child component can never send a prop back to the parent component. This helps in maintaining the unidirectional data flow and is generally used to render the dynamically generated data.