The library for web and native user interfaces.
Fix lint warning about mismatched file & module name
@providesModule should match the file name. In this case we'll be consistent and suffix mixins with Mixin.
CommitSyncScript committed
Jun 17, 2013 at 16:24 UTC
4a0456fb8e41e54d9c6ebf4ff0d7f942d7aa27f9
1 file changed
+6
-5
src/core/ReactComponentWithPureRenderMixin.js
+6
-5
@@ -13,7 +13,7 @@
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*
16
-* @providesModule ReactComponentWithPureRender
16
+* @providesModule ReactComponentWithPureRenderMixin
17
*/
18
19
"use strict";
@@ -27,9 +27,10 @@
27
*
28
* Example:
29
*
30
- * var ReactComponentWithPureRender = require('ReactComponentWithPureRender');
30
+ * var ReactComponentWithPureRender =
31
+ * require('ReactComponentWithPureRenderMixin');
32
* React.createClass({
32
- * mixins: [ReactComponentWithPureRender],
33
+ * mixins: [ReactComponentWithPureRenderMixin],
34
*
35
* render: function() {
36
* return <div className={this.props.className}>foo</div>;
@@ -41,7 +42,7 @@
42
* differences. Only mixin to components which have simple props and state, or
43
* use `forceUpdate()` when you know deep data structures have changed.
44
*/
44
-var ReactComponentWithPureRender = {
45
+var ReactComponentWithPureRenderMixin = {
46
shouldComponentUpdate: function(nextProps, nextState) {
47
return !shallowEqual(this.props, nextProps) ||
48
!shallowEqual(this.state, nextState);
@@ -74,4 +75,4 @@ function shallowEqual(objA, objB) {
75
return true;
76
}
77
77
-module.exports = ReactComponentWithPureRender;
78
+module.exports = ReactComponentWithPureRenderMixin;