diff --git a/src/browser/ui/ReactDOMComponent.js b/src/browser/ui/ReactDOMComponent.js index 71f80ecfbb..3f57ec4f92 100644 --- a/src/browser/ui/ReactDOMComponent.js +++ b/src/browser/ui/ReactDOMComponent.js @@ -285,7 +285,7 @@ ReactDOMComponent.Mixin = { // superfluous reconcile. It's possible for state to be mutable but such // change should trigger an update of the owner which would recreate // the element. We explicitly check for the existence of an owner since - // it's possible for a element created outside a composite to be + // it's possible for an element created outside a composite to be // deeply mutated and reused. return; } diff --git a/src/browser/ui/ReactMount.js b/src/browser/ui/ReactMount.js index b62e56080a..7124d59e3f 100644 --- a/src/browser/ui/ReactMount.js +++ b/src/browser/ui/ReactMount.js @@ -366,7 +366,7 @@ var ReactMount = { typeof nextElement === 'function' ? ' Instead of passing a component class, make sure to instantiate ' + 'it by passing it to React.createElement.' : - // Check if it quacks like a element + // Check if it quacks like an element typeof nextElement.props !== "undefined" ? ' This may be caused by unintentionally loading two independent ' + 'copies of React.' : diff --git a/src/core/ReactComponent.js b/src/core/ReactComponent.js index 2e400d3e20..ffc8334408 100644 --- a/src/core/ReactComponent.js +++ b/src/core/ReactComponent.js @@ -187,7 +187,7 @@ var ReactComponent = { '`render` method to pass the correct value as props to the component ' + 'where it is created.' ); - // This is a deoptimized path. We optimize for always having a element. + // This is a deoptimized path. We optimize for always having an element. // This creates an extra internal element. this._pendingElement = ReactElement.cloneAndReplaceProps( this._pendingElement || this._currentElement, @@ -205,7 +205,7 @@ var ReactComponent = { * @internal */ _setPropsInternal: function(partialProps, callback) { - // This is a deoptimized path. We optimize for always having a element. + // This is a deoptimized path. We optimize for always having an element. // This creates an extra internal element. var element = this._pendingElement || this._currentElement; this._pendingElement = ReactElement.cloneAndReplaceProps( diff --git a/src/utils/OrderedMap.js b/src/utils/OrderedMap.js index 59aa26ddb7..7e0c00b1af 100644 --- a/src/utils/OrderedMap.js +++ b/src/utils/OrderedMap.js @@ -175,7 +175,7 @@ var OrderedMapMethods = { /** * Returns the object for a given key, or `undefined` if not present. To - * distinguish a undefined entry vs not being in the set, use `has()`. + * distinguish an undefined entry vs not being in the set, use `has()`. * * @param {string} key String key to lookup the value for. * @return {Object?} Object at key `key`, or undefined if not in map.