Skip to content

Commit e23b0d2

Browse files
heyjohnfordiamdustan
authored andcommitted
Fix up some grammar related things
1 parent b8736c2 commit e23b0d2

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/component.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212

1313
/**
1414
* React Components are the heart and soul of a React renderer. This is the
15-
* internal side of a consumers ReactComponents. At a high level, you will
15+
* internal side of a consumers ReactComponents. At a high level, you will
1616
* define one or more internal components to map to the public interface of your
17-
* renderer. Beloew this we have defined two ReactComponents.
17+
* renderer. Below this we have defined two ReactComponents.
1818
*
1919
* * MinimumViableComponent
2020
* * TinyRendererComponent
@@ -48,7 +48,7 @@ const MinimumViableComponent = function(element) {
4848
// `getNativeNode` should return this.
4949
this.node = null;
5050
// `this._mountImage` is the representation you use to render a ReactElement
51-
// heirarchy. This could be an HTML string, a DOM node, or an identifier or
51+
// hierarchy. This could be an HTML string, a DOM node, or an identifier or
5252
// simple representation that maps to the final result such as native UI
5353
// controls.
5454
this._mountImage = null;
@@ -79,7 +79,7 @@ MinimumViableComponent.prototype = Object.assign(
7979
/**
8080
* The fun begins! Well, it would in a not-so-tiny renderer, but for here it’s
8181
* pretty straight-forward. The idea for this particular implementation came
82-
* from converations with Ryan Florence and Michael Jackson from the React
82+
* from conversations with Ryan Florence and Michael Jackson from the React
8383
* Router/React.js Training teams.
8484
*
8585
* React Router supports two route configuration approaches:
@@ -90,7 +90,7 @@ MinimumViableComponent.prototype = Object.assign(
9090
* As I understand it, both approaches result in the object literal, it’s just a
9191
* matter of the path to get there. The question then is what would it look
9292
* like to write a renderer that accomplishes the ReactComponent authoring style
93-
* in more elegant way?
93+
* in a more elegant way?
9494
*
9595
* If you recall from our mount.js render method, the return value or callback
9696
* is called with the result of `component.getPublicInstance()`. We want this to

src/injection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function inject() {
8282
// * injectTextComponentClass
8383
// * injectComponentClasses
8484
//
85-
// `GenericComponentClass` is analagous to $JSXInstrinsics in flow
85+
// `GenericComponentClass` is analogous to $JSXInstrinsics in flow
8686
// terminology. This is a lowercase JSXElement such as <div />
8787
//
8888
// `TextComponentClass` is what class should be used when text is being

src/mount.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
*/
4646

4747
/**
48-
* As with most modern JavaScript projects in 2016, we begin be importing our
48+
* As with most modern JavaScript projects in 2016, we begin by importing our
4949
* dependencies. The first dependency here will typically be seen inline, but
5050
* has been moved out for clarity while reading the primary `mount` method
5151
* below.

src/reconcileTransaction.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const PooledClass = require('react/lib/PooledClass');
2727
const Transaction = require('react/lib/Transaction');
2828

2929
/**
30-
* Provides a `CallbackQueue` queue for collecting `onDOMReady` or analagous
30+
* Provides a `CallbackQueue` queue for collecting `onDOMReady` or analogous
3131
* callbacks during the performing of the transaction.
3232
*/
3333
const ON_RENDERER_READY_QUEUEING = {
@@ -78,7 +78,7 @@ const Mixin = {
7878

7979
/**
8080
* `PooledClass` looks for this, and will invoke this before allowing this
81-
* instance to be resused.
81+
* instance to be reused.
8282
*/
8383
destructor: function() {
8484
CallbackQueue.release(this.reactMountReady);

0 commit comments

Comments
 (0)