Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Commit

Permalink
Export ReactComponentWithPureRenderMixin from lib (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
aweary authored and developit committed Dec 14, 2016
1 parent 9e926ca commit ba8e58b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/ReactComponentWithPureRenderMixin.js
@@ -0,0 +1 @@
module.exports = require('standalone-react-addons-pure-render-mixin');
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -79,6 +79,7 @@
"dependencies": {
"preact-render-to-string": "^3.2.1",
"preact-transition-group": "^1.1.0",
"proptypes": "^0.14.3"
"proptypes": "^0.14.3",
"standalone-react-addons-pure-render-mixin": "^0.1.1"
}
}
7 changes: 7 additions & 0 deletions test/lib/ReactComponentWithPureRenderMixin.js
@@ -0,0 +1,7 @@
import PureRenderMixin from '../../lib/ReactComponentWithPureRenderMixin';

describe('ReactComponentWithPureRenderMixin', () => {
it('should export an object with a shouldComponentUpdate method', () => {
expect(PureRenderMixin).to.have.property('shouldComponentUpdate').that.is.a.function;
});
});

0 comments on commit ba8e58b

Please sign in to comment.