v2.1.0
Version v2.1.0
Additions:
- Adds support for React static methods.
- Adds dist files (
./dist/omniscient.js
and./dist/omniscient.min.js
) and build script.
E.g.
var mixins = [{ statics: { foo: noop } }, { statics: { bar: noop } }];
var Component = component(mixins, function () {
return React.DOM.text(null, 'hello');
});
Component.foo.should.be.a('function');
Component.jsx.foo.should.be.a('function');
Component.bar.should.be.a('function');
Component.jsx.bar.should.be.a('function');