React Props

Learn how props helps to pass information from one component to another.

We'll cover the following

We are currently using the list variable as a global variable in the current application. We used it directly from the global scope in the App component, and again in the List component. This could work if you only had one variable, but it doesn’t scale with multiple variables across multiple components from many different files.

Using so-called props, we can pass variables as information from one component to another component. Before using props, we’ll move the list from the global scope into the App component and rename it to its actual domain:

Get hands-on with 1200+ tech skills courses.