Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React: Class Based Components: fix grammar #26441

Closed
wants to merge 3 commits into from
Closed
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
6 changes: 2 additions & 4 deletions javascript/computer_science/a_very_brief_intro_to_cs.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,16 @@ This section contains a general overview of topics that you will learn in this l
<div class="lesson-content__panel" markdown="1">
1. Watch [Introduction to Algorithms by David Malan](http://ed.ted.com/lessons/your-brain-can-solve-algorithms-david-j-malan) on TedEd to see how to think about algorithms.
2. Watch [What is an Algorithm?](https://youtu.be/e_WfC8HwVB8) on YouTube for a more structured look at solving problems using algorithms.
3. Read [this Quora question about the importance of algorithms in web development](http://www.quora.com/Algorithms/What-is-the-importance-of-algorithms-in-web-development) to get some context for why we're going over this stuff.
3. Read [this Quora answer about the importance of algorithms in web development](https://qr.ae/py3NAc) to get some context for why we're going over this stuff.
4. Watch [What is pseudocode?](https://www.youtube.com/watch?v=Rg-fO7rDsds)
</div>



### Knowledge check

This section contains questions for you to check your understanding of this lesson on your own. If you’re having trouble answering a question, click it and review the material it links to.

- [What is an Algorithm?](https://youtu.be/e_WfC8HwVB8)
- [What is the importance of algorithms in web development?](http://www.quora.com/Algorithms/What-is-the-importance-of-algorithms-in-web-development)
- [What is the importance of algorithms in web development?](https://qr.ae/py3NAc)
- [What is pseudocode?](https://www.youtube.com/watch?v=Rg-fO7rDsds)

### Additional resources
Expand Down
2 changes: 1 addition & 1 deletion react/class_components/class_based_components.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

### Historical React component patterns

In your previous lessons, you have already been introduced to functional components, and the basic patterns in which components get written now a days. However, React components did not look this way when React was introduced.
In your previous lessons, you have already been introduced to functional components, and the basic patterns in which components get written nowadays. However, React components did not look this way when React was introduced.

If you look into any older React codebase, you'll notice a lot of classes. These are known as class-based components. Prior to February 2019, functional components were also called state-less, as there was no way to manage state in them. This was changed when hooks were introduced, leading to less verbose and 'neater' components.

Expand All @@ -20,7 +20,7 @@

### Building a class component

As we already know about functional components, let us build a class-based component from a functional one. Usually, you will want to divide the contents of a component, like the one we use, into smaller, re-usable components, but for the purposes of this exercise, we stick to one component. Below, we have a sample functional component:

Check failure on line 23 in react/class_components/class_based_components.md

View workflow job for this annotation

GitHub Actions / Check for spelling errors

re-usable ==> reusable

~~~jsx
import React, { useState } from "react";
Expand Down
7 changes: 5 additions & 2 deletions ruby/computer_science/a_very_brief_intro_to_cs.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ We're taking a look at some more Computer Science-y concepts here because they a
If that doesn't get you interested, remember that this curriculum is meant to prepare you for life beyond the web page. If you're interested in applying for a job, you'll be asked questions that directly touch on some of this stuff. It's going to require you to put on your thinking cap (sorry, it had to happen sometime), but we won't be doing anything too crazy. We'll stick to the practical side of this material as opposed to getting too stuck in theory.

### Learning outcomes

Look through these now and then use them to test yourself after doing the assignment:

* What is an algorithm?
Expand All @@ -21,20 +22,22 @@ Look through these now and then use them to test yourself after doing the assign
<div class="lesson-content__panel" markdown="1">
1. Watch [Introduction to Algorithms by David Malan](http://ed.ted.com/lessons/your-brain-can-solve-algorithms-david-j-malan) on TedEd to see how to think about algorithms.
2. Watch [What is an Algorithm?](https://youtu.be/e_WfC8HwVB8) on YouTube for a more structured look at solving problems using algorithms.
3. Read [this Quora question about the importance of algorithms in web development](http://www.quora.com/Algorithms/What-is-the-importance-of-algorithms-in-web-development) to get some context for why we're going over this stuff.
3. Read [this Quora answer about the importance of algorithms in web development](https://qr.ae/py3NAc) to get some context for why we're going over this stuff.
4. Watch [What is pseudocode?](https://www.youtube.com/watch?v=Rg-fO7rDsds)
</div>

### Additional resources

This section contains helpful links to other content. It isn't required, so consider it supplemental.

* [Wikipedia on Computer Science](http://en.wikipedia.org/wiki/Computer_science)
* [Wikipedia on Algorithms](http://en.wikipedia.org/wiki/Algorithm)
* [Map of Computer Science](https://youtu.be/SzJ46YA_RaA)

### Knowledge check

This section contains questions for you to check your understanding of this lesson. If you’re having trouble answering the questions below on your own, review the material above to find the answer.

* <a class="knowledge-check-link" href="https://youtu.be/e_WfC8HwVB8">What is an Algorithm?</a>
* <a class="knowledge-check-link" href="http://www.quora.com/Algorithms/What-is-the-importance-of-algorithms-in-web-development">What is the importance of algorithms in web development?</a>
* <a class="knowledge-check-link" href="https://qr.ae/py3NAc">What is the importance of algorithms in web development?</a>
* <a class="knowledge-check-link" href="https://www.youtube.com/watch?v=Rg-fO7rDsds">What is pseudocode?</a>
Loading