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

Commit

Permalink
Merge pull request #59 from coding-with-cynthia/quick-fixes
Browse files Browse the repository at this point in the history
Fixing some typos
  • Loading branch information
crichID authored Jul 30, 2020
2 parents f12ba06 + 64aa097 commit 456307a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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

0 comments on commit 456307a

Please sign in to comment.