masonic icon indicating copy to clipboard operation
masonic copied to clipboard

How can I use masonic in class based components

Open satyendra2013 opened this issue 3 years ago • 1 comments

Currently my project heavily relies on class based components. I am trying to implement masonic but only issue that I am getting is that I can't able to use useWindowScroll hook in that. And because of that when scroll is happening no data is getting rendered. Any quick example with class based components will highly appreciated. Thanks.

satyendra2013 avatar Oct 16 '20 19:10 satyendra2013

The easiest solution would be to create a functional component and render the masonic grid there and from your class component only to pass the data to render as props.

thexpand avatar Oct 25 '20 20:10 thexpand