|
1 | 1 | ## Step 9: Adding the correct props
|
2 | 2 |
|
3 |
| -Take a look at this conditional between lines 71 and 80 in `src/App.jsx`. |
| 3 | +There are some issues with this code. We want to be modifying the `students` list, not the `assignments` list. |
4 | 4 |
|
5 |
| -We are trying to render the correct component when we click `Students`. |
6 |
| - |
7 |
| -There are some issues with this code. We want to be modifying the `students` list, not the `assignments` list. |
8 |
| - |
9 |
| -Let's go ahead and change some props! |
| 5 | +Let's change some props between lines 71 and 80 to render the correct components when we click `Students`. |
10 | 6 |
|
11 | 7 | ### :keyboard: Activity: Change the props for Students
|
12 | 8 |
|
13 |
| -1. Uncomment the conditional statement between lines 71 and 80 |
14 |
| -2. On line 74, change the `placeholder` prop to `"Add Student..."` |
15 |
| -3. On line 75, change the `currList` prop to `{this.state.students}` |
16 |
| -4. On line 76, change the `addFunction` prop to `{this.addStudent}` |
17 |
| -5. Save your code |
| 9 | +1. Uncomment the conditional statement between lines 65 and 75 of `src/App.jsx` |
| 10 | +2. On line 68, change the `placeholder` prop to `"Add Student..."` |
| 11 | +3. On line 69, change the `currList` prop to `{this.state.students}` |
| 12 | +4. On line 70, change the `addFunction` prop to `{this.addStudent}` |
| 13 | +5. Save your changes |
18 | 14 | 6. To run your code, move inside your repo folder in your terminal and run `npm start`
|
19 | 15 | 7. Exit the process in your terminal using `Ctrl + C`
|
20 |
| -8. Commit and push your code to the `changes` branch: |
| 16 | +8. Stage, commit, and push your changes to the `changes` branch: |
21 | 17 | ```
|
22 | 18 | git add src/App.jsx
|
23 | 19 | git commit -m "change props for students rendering"
|
24 | 20 | git push
|
25 | 21 | ```
|
26 | 22 |
|
27 | 23 | <hr>
|
28 |
| -<h3 align="center">Watch below this comment for my response</h3> |
| 24 | +<h3 align="center">Watch below this comment for my response.</h3> |
0 commit comments