eiriklv / react-masonry-component

A React.js component for using @desandro's Masonry
MIT License
1.44k stars 145 forks source link

Replacing string ref with method #99

Closed wchaering closed 6 years ago

wchaering commented 6 years ago

Replaced legacy string ref with method to set the node to this.masonryContainer. Fixes error when used with React 16:

Element ref was specified as a string (masonryContainer) but no owner was set.

wchaering commented 6 years ago

Closes #101