masonic
masonic copied to clipboard
How can I use masonic in class based components
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.
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.