Closed brandonmp closed 7 years ago
Hmm, looks ok. I haven't used Immutable.js too much but do you have to convert back to plain JS?
this.props.userListings
.filter(/*filter code*/)
.map((val, key) => {
return <ListingCard data={val}/>
})
.toJS()
I don't know if this is needed. Otherwise perhaps try it without makeResponsive
and see if that's where the problem is?
A part of my project is a layout of cards similar to the
react-stonecutter
example. I've tried to implementstonecutter
into my cards area, but my cards render in a single column (vice a proper responsive layout).My assumption is I'm missing some obvious setting, but I can't quite figure it out. Is there a simple reason this might be happening?
All the components involved here are either direct from
Material-UI
or slightly modified versions (e.g.,<ListingCard> == <Card>++
).The data structures are Immutable.js, so the methods I'm using (
map
,filter
) aren't native JS, if that matters.