What's new
Accessibility props
You can now pass role, aria-label, aria-labelledby, tabIndex, id, and any aria-* attribute directly to the scroll container:
<InfiniteScroll
role="list"
aria-label="Search results"
dataLength={items.length}
next={fetchMore}
hasMore={hasMore}
loader={<p>Loading...</p>}
>
{items.map(item => (
<div role="listitem" key={item.id}>{item.name}</div>
))}
</InfiniteScroll>Closes #411. Thanks to @sayedrisat for the contribution!