Learn
this.props
this.props

Previously, you learned one way that components can interact: a component can render another component.

In this lesson, you will learn another way that components can interact: a component can pass information to another component.

Information that gets passed from one component to another is known as “props.”

Click Next to enter props-land!

Instructions

In this video, you can see the Post component passing a prop to the Content component. The prop contains a string '../images/atom.png', which is used to display an image.

Folder Icon

Take this course for free

Already have an account?