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

Fixing some typos #59

Merged
merged 1 commit into from
Jul 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion responses/04_replace-title-activity.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

What does the `List` component do with the information we just included? Adding `this.props` tells the component to look for the property that was passed to it.

To see, open the `src/List.jsx` file. In the `render` method, in our input tag, notice that we set our `placeholder` to `this.props.placeholder`. Then, at the bottom of our `render` method, we loop through out `this.props.currList`. This shows each item in the list that we pass.
To see, open the `src/List.jsx` file. In the `render` method, in our input tag, notice that we set our `placeholder` to `this.props.placeholder`. Then, at the bottom of our `render` method, we loop through our `this.props.currList`. This shows each item in the list that we pass.

Let's go ahead and replace the current title with another `prop`.

Expand Down
2 changes: 1 addition & 1 deletion responses/06_create-addstudent-activity.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Now that we see how it works with assignments, let's try it with students! We wi
5. Stage, commit, and push your changes to the `changes` branch:
```
git add src/App.jsx
git commit -m "create addStudents method"
git commit -m "create addStudent method"
git push
```

Expand Down
2 changes: 1 addition & 1 deletion responses/06_explaining-this-state-activity.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Unfortunately, we can't just do `this.state.studentsList = .....` to change data

To set the state of a state variable we have to use the method, `this.setState`.

Take at the method on line 30 in `src/App.jsx`
Take a look at the method on line 30 in `src/App.jsx`

When this method is called, it is adding `assignmentName` to our state variable `assignments` by setting the state of `assignments` to itself with the concatenation of `assignmentName`.

Expand Down