mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* fix: added missing typing 1. Added missing `className` definition * fix: set className to go through tests
16 lines
443 B
TypeScript
16 lines
443 B
TypeScript
import * as React from 'react';
|
|
import * as InfiniteScroll from 'react-infinite-scroll-component';
|
|
|
|
const options: JSX.Element[] = [<div key="1">1</div>, <div key="2">2</div>];
|
|
|
|
const props: InfiniteScroll.InfiniteScrollProps = {
|
|
dataLength: 4,
|
|
hasMore: true,
|
|
endMessage: 'The end.',
|
|
loader: <h3>Loading...</h3>,
|
|
next: () => null,
|
|
className: 'this-is-a-test',
|
|
};
|
|
|
|
<InfiniteScroll {...props}>{options}</InfiniteScroll>;
|