Skip to content

v2.1.0

Compare
Choose a tag to compare
@mikaelbr mikaelbr released this 25 Nov 21:24
· 236 commits to master since this release

Version v2.1.0

Additions:

  1. Adds support for React static methods.
  2. 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');