React Masonry Mixin
A React.js Masonry mixin. (Also available as a component - you should use that instead!)
The mixin is now bundled with Masonry, so no additional dependencies needed!
You will have to use Masonry as a script dependency, as there is no complete npm module available at the moment.
You can optionally include Masonry as a script tag
<script src='//cdnjs.cloudflare.com/ajax/libs/masonry/3.1.5/masonry.pkgd.min.js' />
To use the mixin
require the mixin and inject
pass a reference and a masonry options object
make sure you use the same reference as
refin your component
if you need to - access the masonry object through
this.masonryin your component
var React = ;var MasonryMixin = React;var masonryOptions =transitionDuration: 0;var SomeComponent = React;moduleexports = SomeComponent;