Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I use masonic in class based components #50

Open
satyendra2013 opened this issue Oct 16, 2020 · 1 comment
Open

How can I use masonic in class based components #50

satyendra2013 opened this issue Oct 16, 2020 · 1 comment
Labels
question Further information is requested

Comments

@satyendra2013
Copy link

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.

@thexpand
Copy link

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.

@jaredLunde jaredLunde added the question Further information is requested label Feb 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants