InifiniteScroll component wrapping material UI Grid
See original GitHub issueWhen i using a grid component inside InfiniteScroll component, its only show one item per row, even though i want to show 5 item per row, it doesnt work.
<InfiniteScroll>
{userFeed.map(item => (
<Grid>
</Grid>
))}
</InfiniteScroll>
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
InifiniteScroll component wrapping material UI Grid · Issue #252
When i using a grid component inside InfiniteScroll component, its only show one item per row, even though i want to show 5...
Read more >Infinite Scrolling not working with Material UI Grid component
I have Grid from Material UI as a child of InfiniteScroll and I am wondering if they work together well or not? Here...
Read more >React Grid component - Material UI - MUI
In order to create a grid layout, you need a container. Use the container prop to create a grid container that wraps the...
Read more >Implementing Infinite Scroll And Image Lazy Loading In React
We have successfully implemented fetch, infinite scroll, and image lazy loading. We might have another component in our application that needs ...
Read more >Bootstrap 5 grid system - examples and tutorial
MDB 5 - Bootstrap 5 & Material Design Grid System Tutorial ... Bootstrap requires a containing element to wrap site contents and house...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
to make this work with material ui i need to wrap all Grids components with the InfiniteScroll component, like that :
I had the same issue with the Grid component from semantic-ui-react. I was able to get it working by setting the semantic-ui class names directly instead of using semantic-ui-react. Specifically, I (1) set
className="ui grid"
on theInfiniteScroll
component and (2) setclassName="two wide column"
on the item itself. I have not used material UI, but perhaps you can do something similar.