ReactJS | Props – Set 1
We have already discussed Components and it’s type in our previous articles on ReactJS | Components. Till now we were working with components using static data only. In this article, we will learn about how we can pass information to a Component.
React allows us to pass information to a Component using something called props (stands for properties). Props are objects which can be used inside a component. We will learn about these in detail in this article.
Passing and Accessing props