Skip to content

Commit c7f7e5e

Browse files
committed
fix typos
1 parent 70cb1fe commit c7f7e5e

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

egghead.io_video_tutorial_notes.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -506,8 +506,8 @@ and [**deep-freeze**](https://github.com/substack/deep-freeze) to make sure my c
506506
These are loaded from [@Substack](https://github.com/substack)'s CDN: https://wzrd.in
507507
508508
"Let's say that I want to implement a **counter** ***list*** application.
509-
I would need to write a few function that operate on its' state and
510-
its' state is an `Array` of JavaScript *Numbers* representing the individual counters."
509+
I would need to write a few function that operate on its state and
510+
its state is an `Array` of JavaScript *Numbers* representing the individual counters."
511511
512512
The first function I want to write is called addCounter
513513
and all it should do is to *append* a zero at the end
@@ -1544,7 +1544,7 @@ To gain a *deeper* understanding of how *exactly* `combineReducers` works
15441544
we will *implement* it ***from scratch*** in this lesson.
15451545
15461546
`combineReducers` is a function so I'm writing a function declaration
1547-
and its' only argument is the *mapping* between `state` keys
1547+
and its only argument is the *mapping* between `state` keys
15481548
and the reducers, so I'm just going to call it `reducers`.
15491549
15501550
```js
@@ -1565,7 +1565,7 @@ const combineReducers = (reducers) => {
15651565
};
15661566
```
15671567
1568-
The returned value is supposed to be a reducer its' self
1568+
The returned value is supposed to be a reducer itself
15691569
so this is a function that returns another function
15701570
and the signature of the returned function is a reducer signature
15711571
it has the `state` and the `action`
@@ -2159,7 +2159,7 @@ the root reducer will *use* this new field as part of its *new*
21592159
its going to get this *new* `state` `Object`
21602160
and pass all its keys as props to the `TodoApp` Component
21612161
so the `TodoApp` Component will receive the todos
2162-
and the *updated* `visibilityFilter` as its' props
2162+
and the *updated* `visibilityFilter` as its props
21632163
both its props are passed to the `getVisibleTodos` function
21642164
which calculates the *currently* `visibleTodos`
21652165
according to a list of *all* `todos` and the `visibilityFilter`
@@ -2589,7 +2589,7 @@ such as what happens when the **Add** `<button>` is clicked
25892589
how the todos are selected
25902590
what happens when a *single* `Todo` has been clicked
25912591
and what happens when a `Footer` Link is clicked.
2592-
And the components such as `AddTodo`, the `TodoList`, the `Todo` its' self
2592+
And the components such as `AddTodo`, the `TodoList`, the `Todo` itself
25932593
the `Footer` and the `FilterLink` they don't dispatch actions
25942594
they call their callbacks [passed] in the props
25952595
so they are *only* responsible for the *looks* but not for the behavior.
@@ -2705,7 +2705,7 @@ As a "*Container*" Component the `FilterLink`
27052705
doesn't have its *own* markup
27062706
and it delegates rendering to the `Link`
27072707
"*Presentational*" Component.
2708-
In this case it *calculates* its' `active` prop
2708+
In this case it *calculates* its `active` prop
27092709
by comparing its *own* `filter` prop
27102710
with the `visibilityFilter` in the Redux `store` `state`.
27112711
The `filter` prop is the one that is passed
@@ -2837,7 +2837,7 @@ inside its `render` method.
28372837
Instead of specifying the DOM tree
28382838
it delegates all the rendering to
28392839
the `Link` "*Presentational*" Component
2840-
and its' only job is to calculate the props
2840+
and its only job is to calculate the props
28412841
base on its *own* props and the *current* `state` of the Redux `store`
28422842
and it also specifies the callbacks that are
28432843
going to dispatch the `actions` on the `store`.
@@ -2857,7 +2857,7 @@ and can be used inside the "*Presentational*" Components such as
28572857
to get the data from the `store` and specify the behavior
28582858
this lets us keep the `Footer` Component simple
28592859
and de-coupled from the behavior and data
2860-
that its' child Components need.
2860+
that its child Components need.
28612861
28622862
28632863
> Code at the *end* of Video 22:
@@ -2950,7 +2950,7 @@ componentWillUnmount() {
29502950
Just like the `FilterLink` the `VisibleTodoList` is
29512951
going to *subscribe* to the `store`
29522952
and *force* an update any time the `store` `state` changes
2953-
because it uses the `state` in its' `render` method.
2953+
because it uses the `state` in its `render` method.
29542954
Now that the `VisibleTodoList` is connected to the Redux `store`
29552955
we can use it *instead* of the `TodoList`
29562956
and we no longer have to pass all the props from the top.
@@ -3035,7 +3035,7 @@ rendering **3** different `FilterLink`s.
30353035
The `FilterLink` is a *Container* Component
30363036
so it *subscribes* to the `store`
30373037
and it renders the *Presentational* Component called `Link`
3038-
calculating weather it should be *active* based on its' props
3038+
calculating weather it should be *active* based on its props
30393039
the *current* Redux `store` `state`
30403040
and it specifies the *behavior*
30413041
(*what happens when it's clicked*).
@@ -3150,7 +3150,7 @@ Note that this change did not change the behavior or *data* flow
31503150
of this application.
31513151
The *Container* Components `subscribe` to the `store`
31523152
just like *before* and update their `state`
3153-
in response to its' changes,
3153+
in response to its changes,
31543154
however what changed is how they *access* the `store`.
31553155
Previously they would *access* a top-level variable
31563156
but this approach does not *scale*
@@ -3184,7 +3184,7 @@ but there is *another* way using the "*advanced*" React feature
31843184
called "***Context***".
31853185
31863186
I'm creating a *new* Component called `Provider`
3187-
and from its' `render` method it just returns what ever its' *child* is.
3187+
and from its `render` method it just returns what ever its *child* is.
31883188
So we can *wrap* any Component in a `Provider`
31893189
and it's going to `render` that Component.
31903190
@@ -3288,7 +3288,7 @@ to the `FilterLink` so it receives the relevant *Context*
32883288
from the `Provider`.
32893289
Now that the `FilterLink` receives the `store` by `context`
32903290
I no longer need to pass it as a `prop`
3291-
so I'm removing its' usage (*from the `Footer` Component*)
3291+
so I'm removing its usage (*from the `Footer` Component*)
32923292
and I'm also removing the `store` prop from the `Footer`
32933293
because it doesn't need to pass it down anymore.
32943294
@@ -3302,7 +3302,7 @@ We *start* by *rendering* the `TodoApp`
33023302
inside the `Provider` Component we defined above.
33033303
The `Provider` Component just *renders*
33043304
what ever you pass to it
3305-
so in this case it renders its' "*Children*"
3305+
so in this case it renders its "*Children*"
33063306
or [*more specifically*] the `TodoApp` component
33073307
however it also provides the `context`
33083308
to *any* Components inside it, including "*Grand Children*"
@@ -3445,7 +3445,7 @@ In the previous lesson I added `ReactRedux` bindings to the project
34453445
and I used the `Provider` Component from `ReactRedux`
34463446
to pass the `store` down the `context`
34473447
so that the *Container* Components can *read* the `store`
3448-
from the `context` and `subscribe` to its' changes.
3448+
from the `context` and `subscribe` to its changes.
34493449
All *Container* Components are *very similar*,
34503450
they need to *re-render* when the `store` `state` changes
34513451
they need to `unsubscribe` from the `store` when they `Unmount`.
@@ -3627,7 +3627,7 @@ them to something more *specific*:
36273627
+ `mapDispatchToProps` becomes `mapDispatchToTodoListProps`
36283628

36293629
Which you don't *have* to do in your code,
3630-
if you keep each Component in its' *own* file (which is considered to be a best practise).
3630+
if you keep each Component in its *own* file (which is considered to be a best practise).
36313631

36323632
I will also remove the line-breaks here
36333633
to make it *clear* that these functions are only relevant
@@ -3741,7 +3741,7 @@ as a `function` so that the Component can read it from the `props`
37413741
and use it without worrying about *context*
37423742
or specifying `contextTypes`.
37433743
However it is *wasteful* to even `subscribe` to the `store`
3744-
if we don't calculate any `props` from its' `state`,
3744+
if we don't calculate any `props` from its `state`,
37453745
so I'm *replacing* the `mapStateToProps` function with a `null`,
37463746
which tells `connect` that there is *no need*
37473747
to `subscribe` to the `store`.
@@ -3992,7 +3992,7 @@ this is what I call an `action` *Creator* because
39923992
it takes the arguments *about* the `action`
39933993
and it returns the `action` `Object`
39943994
with the `type: 'SET_VISIBILITY_FILTER'`
3995-
and the `filter` its' self.
3995+
and the `filter` itself.
39963996
39973997
```js
39983998
const setVisibilityFilter = (filter) => {

0 commit comments

Comments
 (0)