Skip to content

Instantly share code, notes, and snippets.

@mikaelbr
Created March 13, 2015 20:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikaelbr/ddf2507f04581e6e6afb to your computer and use it in GitHub Desktop.
Save mikaelbr/ddf2507f04581e6e6afb to your computer and use it in GitHub Desktop.
Partial Omniscient Components
var component = require('omniscient');
// If you have to use mixins
var withMixin = component.bind({}, [{
componentDidMount: _ => console.log(":D")
}]);
var ListItem = withMixin(({item}) => <li>{item.deref()}</li>);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment