Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Commit 81ca853

Browse files
authored
clarify components and props
1 parent 6f2c8d0 commit 81ca853

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

responses/02_props.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ That might sound a little confusing, but let's take a look. Go to our final [sol
66

77
How do we pass different values to a component? We pass **properties** to the component, otherwise known as **props**.
88

9+
[Props are the input to components](https://reactjs.org/docs/components-and-props.html). Props allow us to reuse a component (like a list) in multiple places within our app.
10+
911
### Props used for Assignments and Students Pages
1012

1113
![Finished Assignments Page](https://user-images.githubusercontent.com/25253905/61293228-11f26580-a788-11e9-90ac-9612c2bddf6b.png)
1214

1315
![Finished Students Page](https://user-images.githubusercontent.com/25253905/61293769-46b2ec80-a789-11e9-88b3-c660f436f5bf.png)
1416

15-
Take a look at our final solution for our assignments and students page above. You'll see that they look similar. The lists are the same component, but with different values. Next, we'll learn to pass different values to the same components.
17+
Take a look at our final solution for our assignments and students page above. You'll see that they look similar. The lists used in the assignments and students pages use the same component, but with different values (props). Next, we'll learn to pass different values to the same components.

0 commit comments

Comments
 (0)