diff --git a/src/capstone/Capstone.js b/src/capstone/Capstone.js
index c45cbe5..e6162b5 100644
--- a/src/capstone/Capstone.js
+++ b/src/capstone/Capstone.js
@@ -10,7 +10,7 @@ const EMPTY_TICKER_MSG = 'Please type a stock ticker and click Search button.';
/**
* 🏆
- * The goal of this capstone project is to bring together most of the
+ * The goal of this capstone project is to bring together most of the
* concepts you have learned in this tutorial together by building this feature.
* The feature we are building is pretty straight forward. There's an input
* field and a search button. When the user types in a valid stock ticker and
@@ -32,7 +32,7 @@ class Capstone extends Component {
handleSearch(stockTicker) {
/**
* ✏️
- * When this method is called, it will be given a stockTicker
+ * When this method is called, it will be given a stockTicker
* as an argument. You need to call setState to set the stockTicker
* state to the value provided to this function
*/
@@ -48,7 +48,7 @@ class Capstone extends Component {
* Like: isEmpty(this.state.stockTicker)
* 🧭 If it is empty assign
{EMPTY_TICKER_MSG}
to EmptyTickerMessage
* 🧭 If the stockTicker is not empty assign null to EmptyTickerMessage
- * You can either use ternery operator -
+ * You can either use ternery operator -
* const a = isEmpty(b) ? c : null;
* OR you can use '&&' operator -
* const a = isEmpty(b) && c;
diff --git a/src/capstone/CompanyFinancial.jsx b/src/capstone/CompanyFinancial.jsx
index 3fe0187..71836a1 100644
--- a/src/capstone/CompanyFinancial.jsx
+++ b/src/capstone/CompanyFinancial.jsx
@@ -56,24 +56,24 @@ class CompanyFinancial extends Component {
* every time either the props changes or the state changes for this component
*/
componentDidUpdate(prevProps, prevState) {
- /**
- * ✏️
- * You need to call the fetchCompanyFinancial method to fetch the
- * comanyFinancial data when the parent passes you a different stockTicker
- * 🧭 Remember to check if the stockTicker props changed before calling the
- * fetchCompanyFinancial method though. You DON'T want to fetch the data
- * if the stockTicker hasn't changed. If you don't check whether props
- * changed your component will go in an infinite loop - it will be
- * fetching the same data over and over again.
- * This lifecycle method will be given multiple arguments.
- * First argument is the value of props before this component updated
- * Second argument is the value of the state before this component updated
- * In our case we just want to check props to see if value for stockTicker
- * changed and the way to do this is:
- * if (this.props.stockTicker !== prevProps.stockTicker) {
- * //Fetch data here only if the current props is not same as previous props
- * }
- */
+ /**
+ * ✏️
+ * You need to call the fetchCompanyFinancial method to fetch the
+ * comanyFinancial data when the parent passes you a different stockTicker
+ * 🧭 Remember to check if the stockTicker props changed before calling the
+ * fetchCompanyFinancial method though. You DON'T want to fetch the data
+ * if the stockTicker hasn't changed. If you don't check whether props
+ * changed your component will go in an infinite loop - it will be
+ * fetching the same data over and over again.
+ * This lifecycle method will be given multiple arguments.
+ * First argument is the value of props before this component updated
+ * Second argument is the value of the state before this component updated
+ * In our case we just want to check props to see if value for stockTicker
+ * changed and the way to do this is:
+ * if (this.props.stockTicker !== prevProps.stockTicker) {
+ * //Fetch data here only if the current props is not same as previous props
+ * }
+ */
}
/**
diff --git a/src/capstone/CompanyProfile.jsx b/src/capstone/CompanyProfile.jsx
index 93e6f03..5785d7a 100644
--- a/src/capstone/CompanyProfile.jsx
+++ b/src/capstone/CompanyProfile.jsx
@@ -49,38 +49,38 @@ class CompanyProfile extends Component {
*/
}
- /*
+ /**
* 💡
* This is another lifecycle method. React will invoke this lifecyle method
* after the component is updated. Remember the component will be updated
* every time either the props changes or the state changes for this component
*/
componentDidUpdate(prevProps, prevState) {
- /**
- * ✏️
- * You need to call the fetchCompanyProfile method to fetch the
- * comanyProfile data when the parent passes you a different stockTicker
- * 🧭 Remember to check if the stockTicker props changed before calling the
- * fetchCompanyProfile method though. You DON'T want to fetch the data
- * if the stockTicker hasn't changed. If you don't check whether props
- * changed your component will go in an infinite loop - it will be
- * fetching the same data over and over again.
- * This lifecycle method will be given multiple arguments.
- * First argument is the value of props before this component updated
- * Second argument is the value of the state before this component updated
- * In our case we just want to check props to see if value for stockTicker
- * changed and the way to do this is:
- * if (this.props.stockTicker !== prevProps.stockTicker) {
- * //Fetch data here only if the current props is not same as previous props
- * }
- */
+ /**
+ * ✏️
+ * You need to call the fetchCompanyProfile method to fetch the
+ * comanyProfile data when the parent passes you a different stockTicker
+ * 🧭 Remember to check if the stockTicker props changed before calling the
+ * fetchCompanyProfile method though. You DON'T want to fetch the data
+ * if the stockTicker hasn't changed. If you don't check whether props
+ * changed your component will go in an infinite loop - it will be
+ * fetching the same data over and over again.
+ * This lifecycle method will be given multiple arguments.
+ * First argument is the value of props before this component updated
+ * Second argument is the value of the state before this component updated
+ * In our case we just want to check props to see if value for stockTicker
+ * changed and the way to do this is:
+ * if (this.props.stockTicker !== prevProps.stockTicker) {
+ * //Fetch data here only if the current props is not same as previous props
+ * }
+ */
}
/**
* 💡
* This is a method to fetch the company profile data from the API.
* Couple things to note here:
- * 1. We are updating the errorMsg state to empty string. This is jus to
+ * 1. We are updating the errorMsg state to empty string. This is jus to
* reset any error message we might have from previous search
* 2. We invoke the API only when the stockTicker is truthy. No point in
* calling the API if we don't have any value for stockTicker
@@ -104,7 +104,7 @@ class CompanyProfile extends Component {
* Updates the companyProfile state with the argument provided
*/
updateCompanyProfile(companyProfile) {
- this.setState({ companyProfile })
+ this.setState({ companyProfile });
}
/**
@@ -135,7 +135,7 @@ class CompanyProfile extends Component {
/**
* ✏️
* We want to render an error message if the API returns some error.
- * We want to check if we have `errorMsg` state is not empty and
+ * We want to check if we have `errorMsg` state is not empty and
* if it's not render the message inside a div
* 🧭 There's an `isEmpty` function that's already imported. Use that
* to check if the `errorMsg` state is empty
@@ -143,7 +143,7 @@ class CompanyProfile extends Component {
* 🧭 If it is empty assign null to ErrorMsg
* 🧭 If the errorMsg is not empty assign {this.state.errorMsg}
* to the ErrorMsg constant.
- * You can either use ternery operator -
+ * You can either use ternery operator -
* const a = isEmpty(b) ? c : null;
* OR you can use '&&' operator -
* const a = isEmpty(b) && c;
@@ -156,7 +156,7 @@ class CompanyProfile extends Component {
* 💡
* Here we are doing same thing as the ErrorMsg above
* Instead of checking for `errorMsg` we are checking for `companyProfile`
- * state. We are displaying the `div` only if the `companyProfile`
+ * state. We are displaying the `div` only if the `companyProfile`
* state is not empty.
*/
diff --git a/src/capstone/Search.jsx b/src/capstone/Search.jsx
index 917124b..abadff3 100644
--- a/src/capstone/Search.jsx
+++ b/src/capstone/Search.jsx
@@ -6,7 +6,7 @@ import style from './solution/style';
* This component houses the input and the Search button.
* When the user types in something we handle the change event and
* store the values typed in the input field to the state
- * When user clicks the Search button it will invoke a callback function
+ * When user clicks the Search button it will invoke a callback function
* that was passed to this component as a props with the latest input value
* as an argument
*/
diff --git a/src/exercise/06-LifecycleMethods.js b/src/exercise/06-LifecycleMethods.js
index 182b0c3..7a80d3e 100644
--- a/src/exercise/06-LifecycleMethods.js
+++ b/src/exercise/06-LifecycleMethods.js
@@ -68,7 +68,7 @@ class CompanyProfile extends Component {
/**
* 🚨 🚨 DO NOT DELETE OR CHANGE THIS.🚨 🚨
- * This is how you would use your above component and
+ * This is how you would use your above component and
* the output of this code is displayed on the browser
*/
const Usage = (props) => {
diff --git a/src/exercise/07-HandlingEvents.js b/src/exercise/07-HandlingEvents.js
index ffb6419..9cb81da 100644
--- a/src/exercise/07-HandlingEvents.js
+++ b/src/exercise/07-HandlingEvents.js
@@ -63,7 +63,7 @@ class FancyInput extends Component {
/**
* 🚨 🚨 DO NOT DELETE OR CHANGE THIS.🚨 🚨
- * This is how you would use your above component
+ * This is how you would use your above component
* The output of this code is displayed on the browser on the left hand side
*/
const Usage = (props) => {
diff --git a/src/tutorial/01-HelloWorld.md b/src/tutorial/01-HelloWorld.md
index c25e375..f32340b 100644
--- a/src/tutorial/01-HelloWorld.md
+++ b/src/tutorial/01-HelloWorld.md
@@ -26,7 +26,7 @@ You should try this for yourself. Open the exercise file and edit the function t
-Notice that `React.createElement` is a simple javascript function which takes three arguments. First argument is the element you want to render. In our case it's a `div` element. Second argument is any properties we want to pass to that element. In our case we are not passing anything so it's null. Third argument is the children for this component. In this case it's the text we want to display - `Hello World`. So with this we are telling React to render a div element like this:
+Notice that `React.createElement` is a simple JavaScript function which takes three arguments. First argument is the element you want to render. In our case it's a `div` element. Second argument is any properties we want to pass to that element. In our case we are not passing anything so it's null. Third argument is the children for this component. In this case it's the text we want to display - `Hello World`. So with this we are telling React to render a div element like this:
```html
@@ -36,11 +36,11 @@ Notice that `React.createElement` is a simple javascript function which takes th
Congratulations, you have created your first Hello World React component.
-Now your inquisitive mind is probably asking - how in the world React renders this thing on the browser?
+Now your inquisitive mind is probably asking - how in the world does React render this thing on the browser?
## Rendering
-Let's step back from React for a moment and think about how we can create the similar Hello World `div` using pure Javascript. Yes pure Javascript - without any frameworks.
+Let's step back from React for a moment and think about how we can create the similar Hello World `div` using pure JavaScript. Yes pure JavaScript - without any frameworks.
### Good Ol' Days
@@ -55,7 +55,7 @@ Let's imagine you have a barebone `html` file that looks like below. It has a `d